putty
MCPBlockchainRPC

get_gas_price

Read the current gas price on the configured chain. Returns the wei value (hex) and a gwei-formatted decimal. The value is the legacy `eth_gasPrice`; on EIP-1559 chains, use it as a floor when constructing a transaction.

Read the current gas price on the configured chain. Returns the wei value (hex) and a gwei-formatted decimal. The value is the legacy eth_gasPrice; on EIP-1559 chains, use it as a floor when constructing a transaction.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_gas_price", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page