Account class
Account instance with keystore encrypt/decrypt
- Implemented types
Properties
-
accountMap
→ Map<
String, dynamic> -
get account Map
no setter
- address ↔ ZilAddress?
-
getter/setter pair
- balance ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEncrypted → bool
-
account encryption checker
no setteroverride
- isFound ↔ bool?
-
getter/setter pairoverride
-
keyStoreMap
→ Map<
String, dynamic> ? -
get keystore Map
no setteroverride
- messenger ↔ dynamic
-
getter/setter pairoverride
- nonce ↔ int?
-
getter/setter pair
- privateKey ↔ String?
-
getter/setter pairoverride
- privateKeyBigInt → BigInt?
-
transalte privateKey to Big Int
no setter
-
privateKeyBytes
→ List<
int> ? -
transate privatekey to Bytes
no setter
- publicKey ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asyncCreate(
) → Future< Account> -
asyncGetAddress(
String? privateKey) → Future< ZilAddress?> -
asyncGetPublicKey(
String? privateKey) → Future< String?> -
checkEncrypted(
) → bool - encryption checker
-
create(
) → Account - create method, should call constructor first
-
decryptAccount(
String? passphrase) → Future - account decyption
-
encryptAccount(
String? passphrase, [Map< String, dynamic> ? options]) → Future - account encryption
-
getAddress(
String? privateKey) → ZilAddress? - get address key from privateKey
-
getKeyStore(
) → Map< String, dynamic> ? - keystore getter
-
getPublicKey(
String? privateKey) → String? - get publicKey from privatKey
-
import(
dynamic prvHex) → Account - import account from hex string
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signTransaction(
Transaction? txnObj, {String? passphrase, Map< String, dynamic> ? options}) → Future<Transaction> - sign transasction
-
toFile(
String? passphrase, [Map< String, dynamic> ? options]) → Future<String> -
toJson(
) → String - to json method
-
toMap(
) → Map< String, dynamic> - to map method
-
toString(
) → String -
A string representation of this object.
inherited
-
updateBalance(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isPrivateKey → RegExp
-
static privatekey checker
final