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)
- sign in with moonx on escrow.
- create a deal (
/escrow/deals/new→POST /api/deals). - share the deal link. seller
PATCHjoin. buyer funds USDC on-chain, thenPATCHmark_funded. buyer latermark_released(ormark_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)
- human vaults a wallet in paybox and issues a scoped grant to an agent client.
- agent connects
https://api.paybox.sh/mcp. - agent pays/funds toward the address / amount the deal requires (exact tool depends on your flow; start from MCP tools).
- 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).