Gas price API for Base and Ethereum, and the cheapest chain to send USDC

Updated 2026-11-10

Use when an agent must price or time an Ethereum, Base or Robinhood Chain transaction before sending it.

From an MCP client, add https://tanod.dev/mcp and call get_gas; the first 10 calls per IP per UTC day are free (shared by all chainpeek reads), then each call is USD 0.001 with x402, no key or signup.

POST a chain to /v1/chain/gas. It returns the current gas price in wei and gwei and the latest block's EIP-1559 base fee. To compare what a USDC or USDT transfer costs across Base, Polygon, Ethereum, BNB Chain, Arbitrum and Solana, POST to /v1/chain/transfer-fees (below). To check one planned USDC or USDT send before signing it (balance, gas, nonce, blacklist, simulation), POST to /v1/chain/transfer-preflight (below).

Compare USDC and USDT transfer fees across chains

POST /v1/chain/transfer-fees (MCP tool compare_stablecoin_transfer_fees, USD 0.002, same free allowance as the gas route) ranks the chains cheapest first by the fee of one USDC or USDT transfer, from live gas prices. All fields are optional: token (USDC default or USDT), chains (any of base, polygon, ethereum, bnb, arbitrum, solana; default all) and amount (informational: an ERC-20 or SPL transfer fee does not depend on the amount).

Example from 2026-10-13 14:25 UTC, for one USDC transfer: Solana USD 0.00054, Base USD 0.00098, Polygon USD 0.0019, BNB Chain USD 0.0024, Arbitrum USD 0.0033 and Ethereum USD 0.072. Fees move block to block. Base's small L1 data fee is not included. On Solana, a recipient with no USDC token account adds a one-time rent of about USD 0.16. For scale, the World Bank put the global average cost of sending USD 200 through remittance providers at 6.49% (about USD 13) in its Q1 2025 report. That figure includes cash-out and currency conversion, which an on-chain transfer does not.

What that means for a micro-payment: on a USD 0.50 payment the same fees are 0.11% on Solana, 0.20% on Base, 0.38% on Polygon, 0.48% on BNB Chain, 0.66% on Arbitrum and 14.4% on Ethereum. A recent agent-economy thread reported USD 0.85 of gas on a USD 0.50 task and concluded micro-tasks do not pay. At these prices the chain decides that, not the size of the task. The live snapshot is on /fees/.

Before you send: the five checks balance and gas miss

A transfer can have enough USDC and enough gas and still revert or hang. A reverted transfer still pays gas, and a retry loop pays it again each time. An agent-finance thread lists five checks that agents skip. On Ethereum and Base you can run all five with routes we already sell:

  1. Pending nonce. POST /v1/chain/nonce (USD 0.001) with "block": "pending", then with "latest". If they differ, an earlier transaction is still in the mempool and a new one will queue behind it.
  2. Issuer blacklist. POST /v1/chain/call (USD 0.002) to the USDC contract with isBlacklisted(address) (selector 0xfe575a87), once for the sender and once for the recipient. USDT uses isBlackListed(address) on Ethereum, but bridged USDT on some chains has no such function, so treat a revert as "unknown", not as a pass.
  3. Issuer pause. The same call with paused() (0x5c975abb). On 13 October 2026 Base USDC answered false.
  4. Recipient sanity. POST /v1/chain/address-poisoning (USD 0.002) flags lookalike addresses in the sender's recent history, and POST /v1/sanctions (USD 0.002) screens the recipient against the OFAC list. Reject the zero address and the token contract itself before you call anything.
  5. Simulate the exact transfer. POST /v1/chain/estimate-gas (USD 0.002) with the sender, the token contract and the transfer(to, amount) calldata. A revert here is a revert you didn't pay gas for.

All five, as listed (two nonce reads, two blacklist reads, one pause read and three checks), cost USD 0.014 together, less than one reverted transfer on Ethereum. Chain reads are cached for up to 30 seconds. The nonce, call and gas routes cover Ethereum and Base (and Robinhood Chain); the sanctions screen is chain-independent. The one-call version is POST /v1/chain/transfer-preflight (MCP tool transfer_preflight, USD 0.01): it runs these checks together with a balance and gas check, on Ethereum, Base, Polygon, BNB Chain and Arbitrum, and answers pass, warn or fail with a reason per check. It is read-only: nothing is signed or sent.

Each row has the token contract, gas_units (the standard 65,000 for an ERC-20 transfer, not measured), gas_price_gwei (base plus priority fee), the fee in native units and in USD with the native token's USD price and its source (Chainlink on Ethereum, Polygon and BNB Chain; Pyth on Solana). Solana rows give the base and priority fee in lamports and the rent a new recipient token account would add. A chain that cannot be read is listed last with an error code; if none can be read the call is a 502 and is not charged. Results are cached for 15 s; they are informational, not a quote.

A daily snapshot of this ranking: Cheapest chain to send USDC today.

Request

chain is ethereum or base. There are no other fields.

curl, using the free tier
curl -s -X POST https://tanod.dev/v1/chain/gas \
  -H 'X-Tanod-Free: 1' -H 'content-type: application/json' \
  -d '{"chain":"base"}'

Response

Response (the example from the OpenAPI spec, trimmed)
{
  "chain": "base",
  "gas_price_wei": "6000000",
  "gas_price_gwei": "0.006",
  "base_fee_gwei": "0.005"
}

Set a keeper wallet's gas floor in hours, not ETH

A low-balance alert such as "below 0.1 ETH" is really a promise about time: how many hours the wallet can keep sending before it runs dry. That time shrinks exactly when gas is expensive. Work it out the other way round: floor = gas the wallet uses per hour × gas price × the hours you need to refill it, including waking someone and collecting signatures. For a keeper sending 6 transactions an hour at 200,000 gas each (1.2 million gas an hour) with a 12-hour refill time, the floor is about 0.0012 ETH at the 0.08 gwei Ethereum price this endpoint returned on 12 October 2026, but 0.43 ETH at 30 gwei. Size the floor for a bad hour: poll this endpoint and keep the highest price you have seen, not the current one.

Floor at the current price, with curl, jq and awk (free tier)
GWEI=$(curl -s -X POST https://tanod.dev/v1/chain/gas \
  -H 'Content-Type: application/json' -H 'X-Tanod-Free: 1' \
  -d '{"chain": "ethereum"}' | jq -r .gas_price_gwei)
awk -v g="$GWEI" 'BEGIN { gas_per_hour = 1200000; hours = 12;
  printf "floor: %.4f ETH at %s gwei\n", gas_per_hour * g * 1e-9 * hours, g }'

Limits and caveats

An estimate. Gas prices move block to block. Use the value to size a fee or set a ceiling, and let your wallet or client set the final fee.

Base has a second fee. On Base the total cost of a transaction also includes an L1 data fee that this call does not report. To see both parts for a mined transaction, look it up by hash.

Gas price is not a priority-fee recommendation.

For scale, a plain USDC transfer cost about USD 0.001 on Base and 0.015 on Ethereum when we measured on 13 October 2026; the six-chain figures are on /payments/. Agents paying for calls over x402 on Base or Polygon don't pay that gas themselves, because the facilitator does.

Poll it on a schedule

Most agents that use gas prices check them on a timer, for example before batching transfers or to wait for a cheap window. At USD 0.001 a call, a schedule costs:

EveryCalls a dayUSD a dayUSD a month
1 minute1,4401.4443.20
5 minutes2880.298.64
15 minutes960.102.88
1 hour240.020.72

Base fees move with demand, not every block, so every 5 minutes is enough for most transfer timing. The first 10 calls each UTC day are free. After that, use one of the SDKs or any x402 client with a per-call cap, and a failed call is never charged (retries). To compare chains in one call instead of polling each one, a multi-chain transfer-fee route is coming.

Price and free allowance

USD 0.001 per call, paid in USDC on Base, Polygon, Solana, BNB Chain or Arbitrum with x402. 10 free chain reads per IP per UTC day with the header X-Tanod-Free: 1, in one pool shared with the other chainpeek reads. MCP tool: get_gas at https://tanod.dev/mcp, where the free tier is automatic.

All endpoints →

Use it from Claude without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/chain?via=gas-price-api as a custom connector (steps), then ask in plain words, for example "What is the gas price on Ethereum right now, and would a transfer be cheaper on Base?" The free daily allowance is applied automatically over MCP. Beyond it a call needs an x402 payment, which these clients can make.

Related guides: How to look up a transaction's status and fee on Base or Ethereum, How to get the latest block number and header on Base or Ethereum, How to get a Uniswap swap quote from an API. Back to tanod.dev or the guide index. Results are automated and heuristic.