Preflight

Check one unsigned Solana transaction and pay $0.01 in USDC (x402), no account

post/api/x402/preflight

Request

  • Base URL: https://overwing.ai
  • URL: https://overwing.ai/api/x402/preflight
  • Auth: none required

Request body

transactionstring required

The serialized Solana transaction in base64, legacy or v0, signed or not. Signatures are ignored

Response

The verdict

idstring
decision'allow' | 'refuse'

The one field to branch on. Sign only on allow

effectsobject nullable

What the simulation says would happen to the wallet: sol_out_lamports, token_out, token_in (atomic units as strings, by mint) and control changes. Null when it could not be simulated

programsstring[]

Every program the transaction would run

digeststring

sha256 of the message with its blockhash zeroed

slotinteger nullable
coveredboolean

Whether the guarantee applies: an allow made only of programs Overwing names

decided_atstring date-time
valid_for_secondsinteger

A verdict covers a transaction that lands within this many seconds

receiptobject

The published payload, its hash, and an Ed25519 signature over the hash

record_urlstring

Changes

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