Constructor for the EVM client.
Parameters for configuring the EVM client.
Protected
chainReadonly
configPrivate
dataPrivate
defaultsPrivate
explorerProtected
feePrivate
gasPrivate
gasPrivate
Optional
hdProtected
networkProtected
phrasePrivate
providersProtected
rootApproves an allowance for spending tokens.
The result of the approval transaction.
Error If gas estimation fails.
Call a contract function.
The result of the contract function call..
Estimates the gas required for approving an allowance.
The estimated gas required for the approval.
Estimates the gas required for calling a contract function.
The estimated gas required for the contract function call.
Estimates gas prices/limits (average, fast, fastest) and fees for a transaction.
The transaction parameters.
The estimated gas prices/limits and fees.
Retrieves the balance of a given address.
The address to retrieve the balance for.
Optional
assets: Asset[]Assets to retrieve the balance for (optional).
An array containing the balance of the address.
Thrown when the provided asset is invalid.
Protected
getProtected
getRetrieves the transaction details of a given transaction ID.
The transaction ID.
Optional
assetAddress: stringThe asset address (optional).
The transaction details of the given transaction ID.
Thrown if the provided transaction ID is invalid.
Retrieves the Ethereum wallet interface.
The index of the HD wallet (optional).
The current Ethereum wallet interface.
Error - Thrown if the HDNode is not defined, indicating that a phrase is needed to create a wallet and derive an address. Note: A phrase is needed to create a wallet and to derive an address from it.
Check allowance.
true
if the allowance is approved, false
otherwise.
Private
isPrepares an approval transaction.
The approval options.
The raw unsigned transaction.
Error Thrown if any of the addresses are invalid.
Prepares a transaction for transfer.
The transfer options.
The raw unsigned transaction.
Error Thrown if the provided asset chain does not match the client's chain, or if any of the addresses are invalid.
Protected
roundRetrieves the balance of an address by round-robin querying multiple data providers.
The address to query the balance for.
Optional
assets: Asset[]Optional list of assets to query the balance for.
The balance information for the address.
Error Thrown if no provider is able to retrieve the balance.
Protected
roundProtected
roundRetrieves transaction data by round-robin querying multiple data providers.
The transaction ID.
Optional
assetAddress: stringOptional asset address.
The transaction data.
Error Thrown if no provider is able to retrieve the transaction data.
Protected
roundRetrieves transaction history by round-robin querying multiple data providers.
The transaction history parameters.
The transaction history.
Error Thrown if no provider is able to retrieve the transaction history.
Protected
thornodeAPIGetTransfers ETH or ERC20 token
Note: A given feeOption
wins over gasPrice
and gasLimit
The transaction hash.
Error Thrown if address of given Asset
could not be parsed
Generated using TypeDoc
Custom EVM client class. Extends
BaseXChainClient
and implementsXChainClient
.