provider_estimate_gas
Calculate the gas needed for Ethereum or EVM-compatible transactions to ensure accurate fee estimation and successful execution.
Instructions
Estimate the gas required for a transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
transaction | Yes | The transaction to estimate gas for |
Input Schema (JSON Schema)
{
"properties": {
"transaction": {
"description": "The transaction to estimate gas for",
"properties": {
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"transaction"
],
"type": "object"
}