Estimate the USD cost of a transaction (transfer, ERC20 transfer, approve, swap,
Estimate the USD cost of a transaction (transfer, ERC20 transfer, approve, swap, NFT mint) on Base/Ethereum/Arbitrum/Optimism/Polygon from live gas price and native token price - lets agents decide whether an action is worth the fee before sending. gas cost, transaction cost, tx fee usd, how much gas, operation cost, fee estimate 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/tx-cost
| Category | Market data |
|---|---|
| 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": {
"chain": "string",
"gasLimit": "string",
"operation": "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": {
"chain": {
"description": "base (default), ethereum, arbitrum, optimism, polygon",
"type": "string"
},
"gasLimit": {
"description": "Optional custom gas limit",
"type": "string"
},
"operation": {
"description": "transfer, erc20transfer, approve, swap (default), nftmint, nfttransfer",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}