ServiceKeyringEth class

Constructors

ServiceKeyringEth(SubstrateService serviceRoot)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceRoot SubstrateService
final

Methods

addressFromMnemonic({String? derivePath, required String mnemonic}) Future
get address and avatar from mnemonic.
addressFromPrivateKey({required String privateKey}) Future
get address and avatar from privateKey.privateKey: string
changePassword({required String address, required String passOld, required String passNew}) Future<Map>
change password of account
checkPassword({required String address, required String pass}) Future<bool>
check password of account
estimateTransferGas({required String token, required double amount, required String to, required String from}) Future<int>
generateMnemonic({int? index, String? mnemonic}) Future<AddressIconDataWithMnemonic>
Generate a set of new mnemonic.
getGasPrice() Future<String?>
importAccount({required EVMKeyType keyType, required String key, required String name, required String password, String derivePath = default_derive_path}) Future<Map>
Import keyPair from mnemonic, privateKey or keystore. keyType: string, key: string, derivePath: string, password: string
injectKeyPairsToWebView(KeyringEVM keyring) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderEthRequest(Map payload) Future<List>
signEthRequest(Map payload, String address, String pass, Map gasOptions) Future<Map>
signMessage({required String message, required String address, required String pass}) Future
sign message with private key of an account.
toString() String
A string representation of this object.
inherited
transfer({required String token, required double amount, required String to, required String sender, required String pass, required Map gasOptions, required dynamic onStatusChange(Map)}) Future<Map>
verifySignature({required String message, required String signature}) Future<Map>
get signer of a signature. so we can verify the signer.

Operators

operator ==(Object other) bool
The equality operator.
inherited