AptosAccount class

Constructors

AptosAccount([Uint8List? privateKeyBytes, String? address])
AptosAccount.fromAptosAccountObject(AptosAccountObject obj)
factory
AptosAccount.fromPrivateKey(String privateKey)
factory

Properties

accountAddress HexString
latefinal
address String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signingKey ↔ KeyPair
latefinal

Methods

authKey() HexString
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pubKey() HexString
publicKeyBytes(KeyPair keypair) Uint8List
signBuffer(Uint8List buffer) HexString
signHexString(String hexString) HexString
toPrivateKeyObject() AptosAccountObject
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDerivePath(String path, String mnemonics) AptosAccount
generateAccount(String mnemonics, {int addressIndex = 0, int accountIndex = 0}) AptosAccount
generateMnemonic({int strength = 128}) String
getResourceAccountAddress(String sourceAddress, Uint8List seed) HexString
Takes source address and seeds, derive and returns the resource account address
isValidMnemonics(String mnemonics) bool
isValidPath(String path) bool