{"uid":"cap_9KlqYdIS0RATqLJGNcwg2","slug":"cleave-gas-purchase-x402-c173c51d","name":"Cleave Gas Purchase (x402)","description":"Native gas on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism, paid in USDC on Base, Arbitrum or Polygon. Orders: 0.8-50 USDC; gas on Ethereum 5-50. Send pay, chainId, recipient, usdc (cross-chain: wallet or refundTo) for an offer; the bare URL is a sample. A one-order address is written to swap USDC toward native gas, or to bridge and swap on arrival. It may yield native coin, USDC on arrival or a refund, or stay unresolved. Nothing is guaranteed; a settled payment is not delivery.","url":"https://api.cleave.fi/x402/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pay","chainId","recipient","usdc"],"properties":{"pay":{"type":"string","pattern":"^[1-9][0-9]{0,9}$","description":"The chain the USDC is paid on"},"usdc":{"type":"string","pattern":"^[0-9]{1,9}(\\.[0-9]{1,6})?$","description":"The USDC amount to pay"},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The paying wallet; it is the refund address when refundTo is not given. It does not set the recipient"},"chainId":{"type":"string","pattern":"^[1-9][0-9]{0,9}$","description":"The chain the native gas is for"},"refundTo":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The refund address on the paying chain; a cross-chain quote needs refundTo or wallet"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The wallet that receives the gas. If your wallet pays for a person, ask them for it; if their own wallet pays, it can be the recipient. Use your own wallet only for your own gas"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"fee":"…","payTo":"0x…","state":"pending","minimum":"…","deadline":0,"requestId":"g:8453:0x…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.8","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.8/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.8","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.8","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ri1mbbH39n5IkYmMYsnxB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.8","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a cross-chain gas-top-up order: pay USDC on Base, Arbitrum, or Polygon to receive native gas tokens on Ethereum, Arbitrum, Base, BNB Chain, Polygon, or Optimism.","exampleAgentPrompt":"I need to top up gas on Arbitrum — send at least 0.01 ETH worth of native gas to my wallet 0xABCD...1234, and I want to pay with 10 USDC from Base.","exampleUseCases":[{"title":"Agent wallet gas refill on Base","prompt":"My agent's wallet on Base is running out of gas — can you buy native ETH for it? The wallet address is 0x1111...aaaa, pay about 5 USDC from Polygon."},{"title":"Fund new Polygon wallet with MATIC","prompt":"I just created a new wallet on Polygon at 0xDEAD...BEEF and it has zero MATIC — can you send it some native gas by spending 8 USDC from Arbitrum?"},{"title":"Top up Optimism gas for deployment","prompt":"I'm about to deploy a contract on Optimism but my address 0xCAFE...BABE has no ETH — please purchase native gas there using 15 USDC paid from Base."}],"resultDescription":"A JSON object containing: 'payTo' (the one-time payment address to send USDC to), 'minimum' (guaranteed minimum native gas to be delivered), 'deadline' (Unix timestamp by which payment must be made), 'requestId' (unique order identifier), 'state' (e.g. 'pending'), and 'fee' (service fee charged). The agent pays USDC to 'payTo' before the deadline to trigger native gas delivery to the recipient address.","failureModes":["Quote expired — deadline passed with no payment, order is auto-refunded","Arrival swap failure — if payment came from another chain and the final swap fails, USDC is delivered instead of native gas","Refund delay — cross-chain unfilled orders may take hours to refund","Invalid chain ID — unsupported destination or payment chain returns error","Recipient address malformed — regex validation failure on address fields","Amount too low — USDC amount below minimum threshold for viable gas delivery"],"whenToPreferThis":"Use this endpoint when an agent or user needs to deliver native gas tokens to an EVM address without already holding native tokens on that chain, and wants to pay exclusively in USDC. Prefer this over manual bridging when the destination is one of the supported chains (Ethereum, Arbitrum, Base, BNB Chain, Polygon, Optimism) and the payment source is USDC on Base, Arbitrum, or Polygon. The automatic refund mechanism makes it safer than raw bridge calls for programmatic agent use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T15:13:33.809Z","isFirstParty":false,"canonicalSlug":"cleave-gas-purchase-x402-c173c51d"}