com.x402-agent-pay/facilitator

AgentPay x402 Facilitator

Verify signed x402 payments; treasury-scoped settlement is irreversible.

1.0.0
Version
remote
Transport
2
Tools

Security review

Review passed

Reviewed 1d ago.

  • tools: 2 tools scanned
  • metadata: scanned

No findings.

Tools (2)

  • x402_facilitator_verify

    Forward an x402 payment envelope to POST https://x402-agent-pay.com/facilitator/verify. Recovers the EIP-712 signer, checks payee/amount/expiry/nonce/USDC balance and spend authority. Free. No gas. No broadcast. Returns isValid plus invalidReason when the payload cannot clear. Authorization still lives in the existing facilitator implementation; this tool only forwards the JSON body.

  • x402_facilitator_settle

    IRREVERSIBLE 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.