Account class

Implemented types

Properties

accountType AccountType
final
address Address
final
hashCode int
The hash code for this object.
no setterinherited
keyPair → SimpleKeyPair
final
name String?
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.
signTransactions(List<RawTransaction> transactions, List<int> indicesToSign) Future<List<SignedTransaction>>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

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

Constants

BYTES_SIGN_PREFIX → const String
Prefix for signing bytes