Estimates the USD gas cost of a common action (transfer, erc20-transfer, approve
Estimates the USD gas cost of a common action (transfer, erc20-transfer, approve, swap, nft-mint) across EVM chains, combining live gas price per chain with the native token price. Lets an agent pick the cheapest chain to execute and budget a transaction. Live aggregated gas + price compute. gas cost estimate, transaction fee usd, cheapest chain to execute, swap gas Accepts payment on Base or Solana — either network works.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.x402node.dev/chain/gas-estimate
| Category | Code and developer |
|---|---|
| Provider host | api.x402node.dev |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"action": "string",
"chain": "string",
"gas": "string"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"action": {
"description": "transfer/erc20-transfer/approve/swap/nft-mint (default swap)",
"type": "string"
},
"chain": {
"description": "optional single chain; omit for all",
"type": "string"
},
"gas": {
"description": "optional custom gas units",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}