Updates the URL for the provider and fetches the consensus parameters for the new URL, if needed.
The URL to connect to.
Optional
options: ProviderOptionsAdditional options for the provider.
Executes a transaction without actually submitting it to the chain.
If the transaction is missing any dependencies, the transaction will be mutated and those dependencies will be added.
The transaction request object.
The provider call parameters (optional).
A promise that resolves to the call result object.
Dry runs multiple transactions.
Array of transaction request objects.
The provider call parameters (optional).
A promise that resolves to an array of results for each transaction call.
Dry runs multiple transactions and checks for missing dependencies in batches.
Transactions are dry run in batches. After each dry run, transactions requiring further modifications are identified. The method iteratively updates these transactions and performs subsequent dry runs until all dependencies for each transaction are satisfied.
Array of transaction request objects.
A promise that resolves to an array of results for each transaction.
Verifies whether enough gas is available to complete transaction.
The type of the transaction request object.
The transaction request object.
A promise that resolves to the estimated transaction request object.
Will dryRun a transaction and check for missing dependencies.
If there are missing variable outputs,
addVariableOutputs
is called on the transaction.
The transaction request object.
The gas price to use for the transaction, if not provided it will be fetched.
A promise that resolves to the estimate transaction dependencies.
Estimates the transaction gas and fee based on the provided transaction request.
The parameters for estimating the transaction gas and fee.
An object containing the estimated minimum gas, minimum fee, maximum gas, and maximum fee.
Return the chain and node information.
If true, ignores the cache and re-fetch configs.
A promise that resolves to the Chain and NodeInfo.
Returns balances for the given owner.
The address to get coins for.
A promise that resolves to the balances.
Returns block matching the given ID or type, including transaction data.
ID or height of the block.
A promise that resolves to the block.
Returns all the blocks matching the given parameters.
Optional
params: CursorPaginationArgsThe parameters to query blocks.
A promise that resolves to the blocks.
Returns coins for the given owner.
A promise that resolves to the coins.
Get deployed contract with the given ID.
ID of the contract.
A promise that resolves to the contract.
Returns Message Proof for given transaction id and the message id from MessageOut receipt.
The transaction to get message from.
Optional
commitBlockId: stringThe commit block id (optional).
Optional
commitBlockHeight: BNThe commit block height (optional).
A promise that resolves to the message proof.
Returns Message Proof for given transaction id and the message id from MessageOut receipt.
The nonce of the message to get status from.
A promise that resolves to the message status
Returns message for the given address.
The address to get message from.
Optional
paginationArgs: CursorPaginationArgsPagination arguments (optional).
A promise that resolves to the messages.
Get the relayed transaction for the given transaction ID.
The relayed transaction ID to get the response for.
A promise that resolves to the relayed transaction.
Returns resources for the given owner satisfying the spend query.
The address to get resources for.
The coin quantities to get.
Optional
excludedIds: ExcludeResourcesOptionIDs of excluded resources from the selection (optional).
A promise that resolves to the resources.
Get transaction with the given ID.
ID of the transaction.
A promise that resolves to the transaction.
Get the transaction response for the given transaction ID.
The transaction ID to get the response for.
A promise that resolves to the transaction response.
Retrieves transactions based on the provided pagination arguments.
Optional
paginationArgs: CursorPaginationArgsThe pagination arguments for retrieving transactions.
A promise that resolves to an object containing the retrieved transactions and pagination information.
Lets you produce blocks with custom timestamps and the block number of the last block produced.
The amount of blocks to produce.
Optional
startTime: numberThe UNIX timestamp (milliseconds) to set for the first produced block (optional).
A promise that resolves to the block number of the last produced block.
Submits a transaction to the chain to be executed.
If the transaction is missing any dependencies, the transaction will be mutated and those dependencies will be added.
The transaction request object.
The provider send transaction parameters (optional).
A promise that resolves to the transaction response object.
Executes a signed transaction without applying the states changes on the chain.
If the transaction is missing any dependencies, the transaction will be mutated and those dependencies will be added
The transaction request object.
The estimate transaction params (optional).
A promise that resolves to the call result object.
A provider for connecting to a node