Gas
compareGas
Returns current base fee and priority fee for every EVM chain with estimated USD cost for a simple transfer (hardcoded at 21,000 gas). Sorted cheapest first. Uses live native token prices. Actual tx costs vary by type - token transfers, swaps, etc. use significantly more gas.
Response Fields
| Field | Type |
|---|---|
data | object |
results | object[] |
chain | string |
baseFeeGwei | number |
priorityFeeGwei | number |
estimatedTxCostUsd | integer |
updatedAt | string |
estimateGas
Estimates the gas required for a transaction without actually sending it. Useful for determining gas limits before submitting transactions.
Parameters
| Name | Required | Description |
|---|---|---|
| chain | yes | Network slug |
| to | yes | Destination address e.g. 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
| from | no | Sender address e.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
| value | no | ETH value in hex wei (e.g. 0xde0b6b3a7640000 = 1 ETH) |
| data | no | Contract call data (hex encoded) |
Response Fields
| Field | Type |
|---|---|
data | object |
chain | string |
gasEstimate | integer |
gasEstimateHex | string |
Supported Networks
EthereumPolygonBNB ChainOptimismBaseAvalancheArbitrumGnosisMoonbeamLineaHyperliquid