Estimates gas fees for a contract execution transaction.
Represents the input parameters for estimating transfer fees.
The contract ABI function signature to be interacted with in the smart contract. For example, burn(uint256)
.
The parameters required by the contract ABI function to perform the contract interaction.
Unique system-generated identifier for the user.
The blockchain address of the contract to be executed.
Information about the source.
Identifier for the originating wallet.
Blockchain associated with the transaction. Required along with sourceAddress
if you don't provide walletId
. The blockchain
and walletId
fields are mutually exclusive.
The source blockchain address of the transaction.
The contract ABI function signature to be interacted with in the smart contract. For example, burn(uint256)
.
The parameters required by the contract ABI function to perform the contract interaction.
The JSON Web Token (JWT) representing the user.
The blockchain address of the contract to be executed.
Information about the source.
Identifier for the originating wallet.
Blockchain associated with the transaction. Required along with sourceAddress
if you don't provide walletId
. The blockchain
and walletId
fields are mutually exclusive.
The source blockchain address of the transaction.
The raw transaction data, must be an even-length hexadecimal string with the 0x prefix, to be executed. It is important to note that the usage of callData is mutually exclusive with the abiFunctionSignature and abiParameters. Therefore, callData cannot be utilized simultaneously with either abiFunctionSignature or abiParameters.
Unique system-generated identifier for the user.
The blockchain address of the contract to be executed.
Information about the source.
Identifier for the originating wallet.
Blockchain associated with the transaction. Required along with sourceAddress
if you don't provide walletId
. The blockchain
and walletId
fields are mutually exclusive.
The source blockchain address of the transaction.
The raw transaction data, must be an even-length hexadecimal string with the 0x prefix, to be executed. It is important to note that the usage of callData is mutually exclusive with the abiFunctionSignature and abiParameters. Therefore, callData cannot be utilized simultaneously with either abiFunctionSignature or abiParameters.
The JSON Web Token (JWT) representing the user.
The blockchain address of the contract to be executed.
Information about the source.
Identifier for the originating wallet.
Blockchain associated with the transaction. Required along with sourceAddress
if you don't provide walletId
. The blockchain
and walletId
fields are mutually exclusive.
The source blockchain address of the transaction.
1const response = await client.estimateContractExecutionFee({
2 abiFunctionSignature: 'functionSig',
3 abiParameters: [param1],
4 contractAddress: 'contract-id',
5 source: { walletId: 'wallet-id' },
6 userId: 'user-id',
7})
8console.log(response.data)