Jump to
Ctrl
+
/

Estimate Contract Interaction Gas Limit EVM

POST
/blockchain-fees/evm/{blockchain}/{network}/estimate-contract-interaction-gas-limit

This endpoint helps customer in estimating the Contract Interaction Gas Limit needed for a transaction. It gives information for gas expenses for a specific contract when calling a specific function.

Path Parameters

blockchain string Required

Represents the specific blockchain protocol name, e.g. Arbitrum.

network string Required

Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while network like "testnet" is a test network.

Query Parameters

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

Request Body Schema application/json

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

data object Required
item object Required
amount string Required

Represents transactions' amount. Should be 0 for non-payable functions.

inputData string Required

ABI encoded value hex value of function name and parameters, e.g. "balanceOf(0x66a9893cc07d91d95644aedd05d03f95e1dba8af)" should be represented as "0x70a0823100000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af"

recipient string Required

Represents the address which receives this transaction.

sender string Required

Represents the address which sends this transaction.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2024-12-12
requestId string Required

Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

601c1710034ed6d407996b30
context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

yourExampleString
data object Required
item object Required
gasLimit integer Required

Represents the amount of gas used by this specific transaction alone.

550000

Credits Cost : 500 Credits for 1 Results

Was this page helpful?
Yes
No
Powered by
Language
URL

{
    "apiVersion": "2024-12-12",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "gasLimit": 550000
        }
    }
}