Onchain Query API
Live gas across Base, Ethereum, Arbitrum, Optimism and Polygon in ONE call, sorted cheapest first: gas price, base fee, median priority fee and the estimated USD cost of a 21k-gas transfer and a 200k-gas swap on each chain. Lets an agent pick the cheapest chain to execute on, or size a fee, without five separate RPC calls. 10-second cache.
Offering
- Provider
- chain.cyberwarex.com
- 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://chain.cyberwarex.com/gas-compare- MIME type
- application/json
- First seen
- 2026-10-23T22:14:09.550Z
- Last seen
- Tags
- Gas, Fees, Multichain, EVM, cheapest-chain
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
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"payTo": "0x058D0Cc5CC97e61e8A9f38D6d6365bce525921B2"
}
]Observed health
- Status
- Healthy
- Latest latency
- 1233 ms
- Average latency
- 853 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 6 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",
"HEAD",
"DELETE"
]
},
"queryParams": {
"type": "object",
"properties": {},
"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",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"chains": {
"items": {
"properties": {
"base_fee_gwei": {
"type": [
"number",
"null"
]
},
"chain": {
"type": "string"
},
"error": {
"type": "string"
},
"est_cost": {
"type": "object"
},
"gas_price_gwei": {
"type": "number"
},
"native": {
"type": "string"
},
"native_usd": {
"type": [
"number",
"null"
]
},
"priority_fee_gwei": {
"type": [
"object",
"null"
]
}
},
"type": "object"
},
"type": "array"
},
"cheapest": {
"description": "Chain with the lowest USD cost for a 21k transfer.",
"type": "string"
},
"count": {
"type": "integer"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}