Skip to main content
Glama

Parallax Protocol

Estimate gas

estimate_gas
Read-onlyIdempotent

Estimates the gas a transaction would use (eth_estimateGas) and what it would cost at the node's current gas price: fee = gas × gas price, in wei and LAX. Takes the same call fields as call_contract (to, from, value_wei, and data or function+args) and nothing is sent. A plain LAX transfer uses 21,000 gas. Fails with the revert reason when the transaction would revert.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYescontract address
abiNocontract ABI as a JSON string; when omitted the explorer's verified ABI is used
argsNofunction arguments as a JSON array; big integers as decimal strings
dataNoraw 0x-hex calldata; alternative to function+args
fromNosender address (optional)
blockNoblock number, hash or "latest" (default)
functionNofunction name resolved via abi or the verified ABI, or a full signature such as "balanceOf(address) returns (uint256)"
value_weiNoLAX to send with the call, in wei (decimal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.