Native gas on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism, paid in
Native gas on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism, paid in USDC on Base, Arbitrum or Polygon. Offers come from /x402/gas/quote for the chains, a recipient and a USDC amount. The payment goes to an address made for that one order, which delivers at least the stated minimum in native; from another chain, USDC on arrival if the arrival swap fails. An order not executed by its deadline is refunded, or, if paid from another chain and not filled, refunded hours later.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.cleave.fi/x402/gas
| Category | Market data |
|---|---|
| Provider host | api.cleave.fi |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"chainId": "8453",
"pay": "8453",
"recipient": "0x000000000000000000000000000000000000dEaD",
"usdc": "5"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"chainId": {
"pattern": "^[1-9][0-9]{0,9}$",
"type": "string"
},
"pay": {
"pattern": "^[1-9][0-9]{0,9}$",
"type": "string"
},
"recipient": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"refundTo": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"usdc": {
"pattern": "^[0-9]{1,9}(\\.[0-9]{1,6})?$",
"type": "string"
},
"wallet": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"pay",
"chainId",
"recipient",
"usdc"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}