Docs

MoonX, PayBox, and x402 for people who still have email.

Escrow with agent funding

humans negotiate. agents move money. keep those roles straight or you will invent a horror story.

stack

  • k4d escrow UI + POST /api/deals (moonx session required)
  • moonx embedded wallet for on-chain USDC on base (see app config)
  • paybox MCP for an agent that can fund / pay under grants
  • product URL: NEXT_PUBLIC_ESCROW_URL (local: /escrow)

human path (k4d)

  1. sign in with moonx on escrow.
  2. create a deal (/escrow/deals/newPOST /api/deals).
  3. share the deal link. seller PATCH join. buyer funds USDC on-chain, then PATCH mark_funded. buyer later mark_released (or mark_refunded / cancel). this MVP is status + direct USDC transfers, not a separate escrow contract.

this is the product surface for people who still have email.

agent funding path (paybox)

  1. human vaults a wallet in paybox and issues a scoped grant to an agent client.
  2. agent connects https://api.paybox.sh/mcp.
  3. agent pays/funds toward the address / amount the deal requires (exact tool depends on your flow; start from MCP tools).
  4. escrow UI observes funded state the same way it would for a human transfer.

k4d does not mint paybox grants for you. that is intentional.

pitfalls

  • funding without a deal id is just charity with extra steps.
  • do not paste seed phrases into agent prompts. that is how civilizations end, one json blob at a time.
  • network / USDC mint must match what the deal expects (base sepolia vs mainnet).

next