Wallet class

Constructors

Wallet(String privateKey, BinanceEnvironment? env)
Create wallet object from private key in hex.
Wallet.addressOnly(String address)
Wallet.fromKeystore({required Keystore keystore, required String password, BinanceEnvironment? env})
only pbkdf2 yet
factory
Wallet.fromMnemonicPhrase(String mnemonicPhrase, Language language, BinanceEnvironment env)
Create wallet object from mnemonic phrase 12-24 words.
Wallet.fromSeed(Uint8List seed, BinanceEnvironment env)
Create wallet object from seed Uint8List
Wallet.fromWIF(String stringWIF, BinanceEnvironment env)
factory

Properties

accountNumber int?
An internal identifier for the account in Binance. Read more: Binance Chain Docs / chain access / account
no setter
address String?
Binance account address.
no setter
chainId String?
no setter
env BinanceEnvironment?
no setter
hashCode int
The hash code for this object.
no setterinherited
httpClient HttpApiClient?
no setter
privateKey String?
The Sequence Number is the way how Binance Chain prevents Replay Attack (the idea is borrowed from Cosmos network, but varies a bit in handling).
no setter
publicKey String?
Public key in hex.
no setter
publicKeyUncompressed String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence int?
getter/setter pair

Methods

generate_order_id() String
read more: Binance Chain Docs / encoding / orderID
increment_account_sequence() → void
initialize_wallet() Future<void>
Load accountNumber, chainId and sequence using HTTP request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload_account_sequence() Future<void>
sign_message(Uint8List message) Uint8List
Sign message using secp256k1
toKeystore(String password) → Keystore
toString() String
A string representation of this object.
inherited
toWIF() String

Operators

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