estimate-fee-per-gas
Calculate gas fees (in wei, gwei, or ether) for blockchain transactions to ensure timely inclusion in the next block. Adjust chain-specific fees using MetaMask MCP for secure and efficient transaction processing.
Instructions
Estimate for the fees per gas (in wei) for a transaction to be likely included in the next block.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | ID of chain to use when fetching data. | |
formatUnits | No | Units to use when formatting result. | gwei |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "ID of chain to use when fetching data.",
"type": "number"
},
"formatUnits": {
"default": "gwei",
"description": "Units to use when formatting result.",
"enum": [
"ether",
"gwei",
"wei"
],
"type": "string"
}
},
"type": "object"
}