Settle an x402 v2 payment (co-sign + submit to Solana)
Verifies the payment payload, then co-signs the transaction as fee payer and submits it to Solana.
Settlement flow:
- Runs the same verification as POST /verify
- Checks for idempotency (dedup by transaction hash or paymentId)
- Deserializes the VersionedTransaction and co-signs with the facilitator keypair (fee payer)
- Submits the fully-signed transaction to Solana via
sendRawTransaction - Confirms the transaction on-chain
- Persists the settlement record to the database
x84 extension modes:
- atomic/attestation: Transaction is already on-chain — the facilitator just records the settlement
- delegated (server-side): Vault settlement via the x84 on-chain program (pending deployment)
Response guarantees (x402 v2):
transactionis always present (empty string on failure)networkis always present (CAIP-2 identifier)
Documentation Index
Fetch the complete documentation index at: https://docs.x84.ai/llms.txt
Use this file to discover all available pages before exploring further.
Body
Response
Settlement result — check success to determine outcome
Whether the settlement succeeded
true
Solana transaction signature (empty string on failure). REQUIRED per x402 v2.
"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
CAIP-2 network identifier where settlement occurred. REQUIRED per x402 v2.
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
Machine-readable error reason code
"SETTLEMENT_FAILED"
Human-readable error message
"Transaction simulation failed: insufficient funds"
Wallet address of the payer
"D6j5dis544qzYmSNixwYwBXqcDqgWiFHpi6hebPEQNVu"
Additional extension data
{ "mode": "atomic" }