posthttps://api.circle.com/v1/w3s/transactions/contractExecution/estimateFee
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain.
Unique system generated JWT session token for specific user.
Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
The blockchain address of the contract to be executed.
The contract ABI function signature or callData field is required for interacting with the smart contract. The ABI function signature cannot be used simultaneously with callData. e.g. burn(uint256)
The contract ABI function signature parameters for executing the contract interaction. Supported parameter types include string, integer, boolean, and array. These parameters should be used exclusively with the abiFunctionSignature and cannot be used with callData.
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 amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.
Blockchain associated with the contract execution transaction. Required when either of walletAddress or sourceAddress is provided.
The blockchain and walletId fields are mutually exclusive.
Source address of the transaction. Required along with blockchain if walletId is not provided.
The sourceAddress and walletId fields are mutually exclusive.
Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source.
1{
2 "data": {
3 "high": {
4 "gasLimit": "21000",
5 "gasPrice": "",
6 "maxFee": "5.935224468",
7 "priorityFee": "1.022783914",
8 "baseFee": "1.022783914",
9 "networkFee": "0.0001246397138",
10 "networkFeeRaw": "0.0001246397138",
11 "l1Fee": "0.000000000000140021"
12 },
13 "low": {
14 "gasLimit": "21000",
15 "gasPrice": "",
16 "maxFee": "5.935224468",
17 "priorityFee": "1.022783914",
18 "baseFee": "1.022783914",
19 "networkFee": "0.0001246397138",
20 "networkFeeRaw": "0.0001246397138",
21 "l1Fee": "0.000000000000140021"
22 },
23 "medium": {
24 "gasLimit": "21000",
25 "gasPrice": "",
26 "maxFee": "5.935224468",
27 "priorityFee": "1.022783914",
28 "baseFee": "1.022783914",
29 "networkFee": "0.0001246397138",
30 "networkFeeRaw": "0.0001246397138",
31 "l1Fee": "0.000000000000140021"
32 },
33 "callGasLimit": "69222",
34 "verificationGasLimit": "56863",
35 "preVerificationGas": "44112"
36 }
37}