{"slug":"1gateway-dev-v1-onchain-base-gas-cfacc4","title":"Use when an agent must price or time a Base transaction","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/onchain/base/gas","category":"market","description":"Use when an agent must price or time a Base transaction. Input: none. Output: JSON current and next base fee, priority fee tiers (slow/standard/fast from the last 20 blocks), suggested maxFeePerGas, block fullness, and typical cost of an ETH transfer, ERC-20 transfer/approve, DEX swap, NFT mint and ","price_listed":0.002,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"baseFeeGwei":{"type":"number"},"block":{"properties":{"gasUsedPct":{"type":["number","null"]},"number":{"type":"integer"},"timestamp":{"type":["string","null"]}},"type":"object"},"chain":{"type":"string"},"chainId":{"type":"integer"},"costs":{"items":{"properties":{"action":{"type":"string"},"l1DataFeeEth":{"type":["number","null"]},"l2FeeEth":{"type":"number"},"label":{"type":"string"},"totalEth":{"type":"number"},"totalUsd":{"type":["number","null"]},"typicalGas":{"type":"integer"}},"type":"object"},"type":"array"},"ethUsd":{"type":["number","null"]},"nextBaseFeeGwei":{"type":"number"},"note":{"type":"string"},"priorityFeeGwei":{"properties":{"fast":{"type":"number"},"node":{"type":"number"},"slow":{"type":"number"},"standard":{"type":"number"}},"type":"object"},"recentBlocks":{"properties":{"avgGasUsedPct":{"type":["number","null"]},"count":{"type":"integer"}},"type":"object"},"rpc":{"properties":{"kind":{"type":"string"},"source":{"type":"string"}},"type":"object"},"suggested":{"properties":{"fast":{"properties":{"maxFeePerGasGwei":{"type":"number"},"maxPriorityFeePerGasGwei":{"type":"number"}},"type":"object"},"slow":{"properties":{"maxFeePerGasGwei":{"type":"number"},"maxPriorityFeePerGasGwei":{"type":"number"}},"type":"object"},"standard":{"properties":{"maxFeePerGasGwei":{"type":"number"},"maxPriorityFeePerGasGwei":{"type":"number"}},"type":"object"}},"type":"object"}},"required":["chain","chainId","block","baseFeeGwei","nextBaseFeeGwei","priorityFeeGwei","suggested","recentBlocks","ethUsd","costs","rpc","note"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Use when an agent must price or time a Base transaction. Input: none. Output: JSON current and next base fee, priority fee tiers (slow/standard/fast from the last 20 blocks), suggested maxFeePerGas, block fullness, and typical cost of an ETH transfer, ERC-20 transfer/approve, DEX swap, NFT mint and contract deploy (L2 fee + L1 data fee) in ETH and USD. Example: /v1/onchain/base/gas","last_updated":"2026-10-18T16:32:04.628Z","schemes":["exact"]}