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.
- Category: Finance and payments
- Effect: Moves money or places orders
- MCP servers: AgentPay x402 Facilitator MCP (https://koskamo.com/explore/agentpay-x402-facilitator-mcp)
- Source: AgentPay x402 Facilitator | REST & MCP Payment Tools (https://x402-agent-pay.com/facilitator.html)
- Source quote: "POST /x402/settle Settle on-chain — EIP-3009 (EVM). Routes by network. 0.5% fee on successful settlement."
- Playbook page: https://koskamo.com/explore/use-cases/settle-x402-payments-on-chain
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..."}}}