sponsored-transactions

Sponsor a transaction (relayer pays the gas)

Submits your authorization as a type-4 transaction with the relayer paying gas. Public sponsorship is PREPAID in USDC over x402: calling without payment returns HTTP 402 plus an accepts[] invoice and the full plan, so pricing is always free to check. Send {"dry":true} for a preview that never broadcasts. Set x-idempotency-key so a timeout retry cannot pay twice.

post/api/7702/sponsor

Request

  • Base URL: https://api.anygas.xyz/svc
  • URL: https://api.anygas.xyz/svc/api/7702/sponsor
  • Auth: none declared

Request body

chainIdinteger required
authorizationobject required
tostring
datastring
dryboolean

price it without broadcasting

Response

Broadcast result or dry plan

object required

Changes

No recorded changes to this operation across all 1 revision of this API.