Liquid Agent

GAS SPONSOR (Solana): POST your transaction with our sponsor as fee payer; pay the exact fee in Solana USDC over x402; get it back co-signed.

PAID, dynamic (from $0.03 USDC, max $2.00; the 402 is the quote, issued only after a successful simulation). Body {transaction:<base64 v0 or legacy, signed by you, feePayer = the sponsor address from GET>, send?:true}. Without payment: 402 with the exact price = (network fee + priority fee + rent for token accounts it opens) x 1.3. Payment: one USDC TransferChecked of exactly amount from your token account to the sponsor's USDC account, sponsor as fee payer, signed by you, wrapped as {x402Version:2, scheme:'exact', network, accepted, payload:{transaction}} and base64d into PAYMENT-SIGNATURE (X-PAYMENT also works). The same POST then returns {transaction (co-signed), feePayer, priceUsd, lamports, feePaymentSig, settledBy, signature? when send:true, next}. Limits: sponsor only as fee payer and payer of <= 8 ATA creates; compute limit <= 1.4M units, price <= 50,000 micro-lamports/unit; 500 sponsorships per payer per day; 503 and no charge when the sponsor is low on SOL.

post/v1/gas/solana

Request

  • Base URL: https://api.liquidagent.ai
  • URL: https://api.liquidagent.ai/v1/gas/solana
  • Auth: HTTP x402

Request body

transactionstring required

base64 Solana transaction (v0 or legacy), signed by you, with feePayer = the sponsor

sendboolean

true = we broadcast the co-signed transaction and return its signature

Response

co-signed transaction

object required

Changes

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