1gateway
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
Offering
- Provider
- 1gateway.dev
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Other
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://1gateway.dev/v1/onchain/base/gas- MIME type
- application/json
- First seen
- 2026-10-19T02:32:25.008Z
- Last seen
- Tags
- Base, Gas, Fees, transaction-cost, Onchain
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "2000",
"payTo": "AwV6UZobYPyTdsuNa2NknZZrnmmUoH5ckEv3wNgL26WT"
}
]Observed health
- Status
- Healthy
- Latest latency
- 766 ms
- Average latency
- 1232 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 12 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"enum": [
"GET"
]
},
"queryParams": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
"required": [
"type",
"method"
],
"additionalProperties": false
}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"
}