Creates a new BaseWalletUnlocked instance.
Protected
Optional
_connectorThe connector for use with external wallets
Protected
Optional
_providerThe provider used to interact with the network.
Readonly
addressThe address associated with the account.
A function that returns the wallet's signer.
Static
defaultDefault HDWallet path.
Gets the private key of the wallet.
The private key of the wallet.
Gets the public key of the wallet.
Adds multiple transfers to a script transaction request.
The script transaction request to add transfers to.
An array of TransferParams
objects representing the transfers to be made.
The updated script transaction request.
Adds a transfer to the given transaction request.
The script transaction request to add transfers to.
The object representing the transfer to be made.
The updated transaction request with the added transfer.
Transfers multiple amounts of a token to multiple recipients.
An array of TransferParams
objects representing the transfers to be made.
Optional transaction parameters.
A promise that resolves to a TransactionResponse
object representing the transaction result.
A helper that creates a transfer transaction request and returns it.
The address of the destination.
The amount of coins to transfer.
Optional
assetId: BytesLikeThe asset ID of the coins to transfer (optional).
The transaction parameters (optional).
A promise that resolves to the prepared transaction request.
Funds a transaction request by adding the necessary resources.
The type of the TransactionRequest.
The transaction request to fund.
The estimated transaction parameters.
A promise that resolves to the funded transaction request.
Generates an array of fake resources based on the provided coins.
An array of FakeResources
objects representing the coins.
An array of Resource
objects with generated properties.
Retrieves all the balances for the account.
A promise that resolves to an array of Coins and their quantities.
Retrieves coins owned by the account.
Optional
assetId: BytesLikeThe asset ID of the coins to retrieve (optional).
Optional
paginationArgs: CursorPaginationArgsA promise that resolves to an array of Coins.
Retrieves messages owned by the account.
Optional
paginationArgs: CursorPaginationArgsA promise that resolves to an array of Messages.
Retrieves resources satisfying the spend query for the account.
Quantities of resources to be obtained.
Optional
excludedIds: ExcludeResourcesOptionIDs of resources to be excluded from the query (optional).
A promise that resolves to an array of Resources.
Returns a transaction cost to enable user to set gasLimit and also reserve balance amounts on the transaction.
The transaction request object.
The transaction cost parameters (optional).
A promise that resolves to the transaction cost object.
Populates a transaction with the witnesses signature.
The transaction request to populate.
The populated transaction request.
Populates the witness signature for a transaction and sends it to the network using provider.sendTransaction
.
The transaction request to send.
Whether to estimate the transaction dependencies.
A promise that resolves to the TransactionResponse object.
Signs a transaction with the wallet's private key.
The transaction request to sign.
A promise that resolves to the signature as a ECDSA 64 bytes string.
Populates the witness signature for a transaction and sends a call to the network using provider.dryRun
.
The transaction request to simulate.
A promise that resolves to the CallResult object.
Transfers coins to a destination address.
The address of the destination.
The amount of coins to transfer.
Optional
assetId: BytesLikeThe asset ID of the coins to transfer (optional).
The transaction parameters (optional).
A promise that resolves to the transaction response.
Transfers coins to a contract address.
The address of the contract.
The amount of coins to transfer.
The asset ID of the coins to transfer (optional).
The transaction parameters (optional).
A promise that resolves to the transaction response.
Withdraws an amount of the base asset to the base chain.
Address of the recipient on the base chain.
Amount of base asset.
The transaction parameters (optional).
A promise that resolves to the transaction response.
BaseWalletUnlocked
provides the base functionalities for an unlocked wallet.