Gas Price

Current gas on an EVM chain, priced in both gwei and dollars.

$0.0100 per call POST /v1/tools/gas-price

Call it

The first response is 402 with the exact price and every rail you can pay with. Pay, repeat the request with the proof, and you get the result.

curl -X POST https://api.glianalabs.com/v1/tools/gas-price \
  -H 'content-type: application/json' \
  -d '{"chain":"base"}'

When to use it

Use when an agent decides whether to transact now, budgets a batch of transactions, or compares chains before routing. Inputs: chain (required — ethereum, base, arbitrum, optimism, bsc, polygon), gasLimit (optional, default 21000 = a plain transfer; pass the real limit for a contract call). Returns gas_price_gwei, priority_fee_gwei where the chain reports one, and estimated_cost_native plus estimated_cost_usd for that gas limit. The base fee moves every block, so this is a quote and not a guarantee.

What it costs

$0.0100 per successful call — flat, with no plan, minimum or monthly fee. A call that fails validation is refused before it runs, so it is never charged.

Not sure this is the right endpoint? GET /v1/consult?intent=… is free and answers that.