FuelWallet class
Constructors
- FuelWallet(DartWalletUnlocked _walletUnlocked)
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
-
createTransferTransactionRequest(
{required String destinationB256Address, required int fractionalAmount, required String assetId}) → Future< (String, String)> - Returns hex string on mobile and json tx request on web
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendTransaction(
{required String transactionRequestHexOrJson}) → Future< String> - Takes hex string on mobile and json tx request on web
-
signMessage(
{required String message}) → Future< String> -
simulateTransaction(
{required String transactionRequestHexOrJson}) → Future< CallResult> - Takes hex string on mobile and json tx request on web
-
toString(
) → String -
A string representation of this object.
inherited
-
transfer(
{required String destinationB256Address, required int fractionalAmount, required String assetId}) → 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