Account class

Properties

address Address
final
hashCode int
The hash code for this object.
no setterinherited
keyPair → SimpleKeyPair
final
publicAddress String
Get the public, human readable address of the account, also known as the Algorand address.
no setter
publicKey → SimplePublicKey
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seedPhrase Future<List<String>>
Get the 25-word seed phrase/mnemonic.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Uint8List bytes) Future<Signature>
Sign the given bytes with the secret key.
signBytes(Uint8List bytes) Future<Signature>
Sign the given bytes, and wrap in signature. The message is prepended with "MX" for domain separation.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromPrivateKey(String privateKey) Future<Account>
Load an existing account from a private key. Private key is a hexadecimal representation of the seed.
fromSeed(List<int> seed) Future<Account>
Load an existing account from an rfc8037 private key. Seed is the binary representation of the seed.
fromSeedPhrase(List<String> words) Future<Account>
Load an existing account from a 25-word seed phrase.
random() Future<Account>
Create a new, random generated account.

Constants

BYTES_SIGN_PREFIX → const String
Prefix for signing bytes