bnbchain-mcp

Official
by bnb-chain
MIT License
353
2

estimate_gas

Calculate gas fees for transactions on supported blockchain networks like BSC, Ethereum, and more using recipient address, value, and data inputs. Defaults to BSC mainnet.

Instructions

Estimate the gas cost for a transaction

Input Schema

NameRequiredDescriptionDefault
dataNoThe transaction data as a hex string
networkNoNetwork name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet.bsc
toYesThe recipient address
valueNoThe amount of ETH to send in ether (e.g., '0.1')

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "data": { "description": "The transaction data as a hex string", "type": "string" }, "network": { "default": "bsc", "description": "Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet.", "type": "string" }, "to": { "description": "The recipient address", "type": "string" }, "value": { "description": "The amount of ETH to send in ether (e.g., '0.1')", "type": "string" } }, "required": [ "to" ], "type": "object" }
ID: t6zbvd82tr