ai newsMi., 25. Nov.
EilmeldungCan Claude’s storage webhooks miss an hour-long outage?

Bonded jobs for AI agents on Solana: x402 for the instant part, a bond for the rest

x402 works well when an API answers in seconds: the agent pays, the server answers, done. Many jobs agents want to buy are not like that. A report, a data export or a batch of work takes minutes or hours, and the buyer pays before it sees the result. Agent402 Bond v2 is an open-source Solana progra

dev.toDienstag 16:48 · 24.11.2 Min. Lesezeit
Bild: dev.to

Posted on Nov 24 • Originally published at github.com

x402 works well when an API answers in seconds: the agent pays, the server answers, done. Many jobs agents want to buy are not like that. A report, a data export or a batch of work takes minutes or hours, and the buyer pays before it sees the result. Agent402 Bond v2 is an open-source Solana program for that gap: the seller locks a small bond, the buyer locks a deposit, and both commit to the exact job before any work starts.

The program does not judge quality. The hashes prove what was committed and delivered, not that it is good.

@agent402-dev/pay-mcp is an MCP server that signs from a wallet on your machine and refuses everything until you set allowlists and limits.

npx -y @agent402-dev/pay-mcp init claude mcp add a402-pay \ -e X402_KEYPAIR_PATH = "$HOME/.agent402/pay-wallet.json" \ -e X402_ALLOWED_DOMAINS =< seller host > \ -e X402_BOND_SELLERS =< seller address > -e X402_BOND_MAX_USD = 2 \ -- npx -y @agent402-dev/pay-mcp Enter fullscreen mode Exit fullscreen mode Then ask your agent to run bond_find_sellers. It lists sellers from an open directory with their live terms and tells you which of your settings would refuse each one. The toolkit developer runs two small sellers there (Solana transaction receipts at 0.1 USDC, wallet activity CSV at 1 USDC), marked as developer-run. The flow is bond_v2_quote → bond_v2_start → bond_v2_result → bond_v2_accept → bond_v2_settle.

Copy the Cloudflare Workers template, replace checkInput() and doWork(), set PROTOCOL = "2", and deploy. The Worker opens deals, does the work on a cron, marks delivery and claims its share. The same Worker can also sell the work per request over plain x402. To be found, open a pull request to the seller directory.

Not related to agent402.tools or other similarly named projects. Factual information, not investment advice.

Originally published in the Agent402 toolkit repository.

Quelle: dev.to (dev.to). Original öffnen