FuelWallet class

Constructors

FuelWallet(ISdkWallet _sdkWallet)

Properties

b256Address String
no setter
bech32Address String
no setter
hashCode int
The hash code for this object.
no setterinherited
mnemonicPhrase String?
no setter
networkUrl String
no setter
privateKey String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendTransaction({required dynamic transactionRequest}) Future<String>
signMessage({required String message}) Future<String>
simulateTransaction({required dynamic transactionRequest}) Future<CallResult>
toString() String
A string representation of this object.
inherited
transfer({required String destinationB256Address, required int fractionalAmount, required String assetId, required int gasPrice, required int gasLimit, required int maturity}) Future<String>

Operators

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

Static Methods

generateNewWallet({required String networkUrl}) Future<FuelWallet>
Generates a mnemonic phrase and a wallet from it
newFromMnemonicPhrase({required String networkUrl, required String mnemonic}) Future<FuelWallet>
Imports the wallet from the provided mnemonic phrase
newFromMnemonicPhraseAndIndex({required String networkUrl, required String mnemonic, required int index}) Future<FuelWallet>
Derives the wallet from the provided mnemonic and index. Constructs the derivation path from the provided index and the conformed Fuel's template "m/44'/1179993420'/$index'/0/0" and imports the wallet using this path
newFromMnemonicPhraseAndPath({required String networkUrl, required String mnemonic, required String derivationPath}) Future<FuelWallet>
Imports the wallet from the provided mnemonic phrase and derivation path
newFromPrivateKey({required String networkUrl, required String privateKey}) Future<FuelWallet>
Imports the wallet from the provided private key. Mnemonic phrase would be absent, cause it's impossible to infer from private key