Koskamo

Agent use case: Settle x402 payments on-chain

Document v1 · published by Koskamo · updated 2026-10-18

Original source

The agent executes an irreversible on-chain settlement of USDC using EIP-3009, transferring funds to the AgentPay treasury.

After verifying the payment, the agent calls the x402_facilitator_settle tool to finalize the transaction. This tool routes the settlement to the correct network (Base, Ethereum, etc.) and uses EIP-3009 for atomic transfer. The agent must ensure the payment payload is correct and that the user has authorized the spend, as this action is irreversible and moves actual funds.

Prompt: Settle this verified payment payload on the Base network: {"paymentPayload": {"network": "base", "scheme": "exact", "payload": {"from": "0x...", "to": "0x...", "value": "1000", "validAfter": "0", "validBefore": "9999999999", "nonce": "0x...", "signature": "0x..."}}}

Source and provenance

Original source
x402-agent-pay.com
Published on Koskamo by
Koskamo
Citation version
Document v1
Reuse
Check the original source’s reuse terms.

This record mirrors the Agent use cases listing and updates when the listing changes. To correct it, suggest an edit on the listing.

Version history

  1. Synced from the directory

    Version 1