Estimate Gas
The "Estimate Gas" feature in the KrypC wallet-dev Service API allows users to obtain an estimation of the gas consumption for a proposed transaction on the blockchain. This provides valuable insight into the anticipated transaction cost, helping users make informed decisions about resource allocation and optimizing their interactions with decentralized networks.
This Estimating Gas consumption using this method.
API Specification
To estimate Gas API
POST
https://api.krypcore.com/api/v0/devWallet/estimateGas
To estimate Gas API under the given instance.
Headers
Name | Type | Description |
---|---|---|
DappId* | String | DappId |
Authorization* | String | User Auth key obtained |
SubscriptionId | String | SubscriptionId |
ChainId | String | ChainId |
Request Body
Name | Type | Description |
---|---|---|
privateKey* | String | Private Key |
to* | String | Message |
chainId* | String | Chain ID |
method* | String | Method |
params* | String | Params |
isContractTxn* | String | IsContractTxn |
contractABI* | String | ContractABI |
Take a look at how you might call this method using our official libraries, or via curl
Last updated