Settle an x402 payment on-chain (irreversible)
x402_facilitator_settleIRREVERSIBLE SIDE EFFECT: forwards the envelope to POST https://x402-agent-pay.com/facilitator/settle. The existing facilitator first re-runs verify(), then refuses PAYEE_NOT_SERVED_HERE unless payTo is the AgentPay treasury (0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03 on Base / 6aCEuwH3PYx99cEmRz45otfxk39uF7ewGhqmvxfXisSG on Solana), then broadcasts via Coinbase CDP and returns a transaction hash. Malformed, unsigned, out-of-scope, or unverified payloads are rejected before any external transfer. This adapter never signs, never holds keys, and never bypasses those gates. Do not call this as a dry run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Exact envelope accepted by POST /facilitator/verify and /facilitator/settle. The live Flask unpacker is liberal (v1/v2 names). This schema documents the supported request body and still forwards extra x402 fields the upstream already understands via nested objects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||