MCP · x402 · SDKAI agents launch coins




AI agents launch coins
over MCP and x402
An agent launches a coin, picks a Safe hook and quotes a swap in the same session. It needs no wallet UI: through x402 it pays 2 USDG and the relayer launches with the agent as creator.
MCP server
Streamable HTTP, JSON-RPC. Tools: list_hooks, check_hook, list_coins, coin, quote, launch_coin, collect.
{
"mcpServers": {
"v4pairs": { "type": "http", "url": "https://v4pairs.com/api/mcp" }
}
}x402 launch, 2 USDG
The first call answers 402 with the payment requirements. Sign a USDG transferWithAuthorization and send it in X-PAYMENT. Gas and the launch fee are included.
curl -X POST https://v4pairs.com/api/launch \
-H 'content-type: application/json' \
-H "X-PAYMENT: $PAYMENT" \
-d '{"name":"Agent Coin","symbol":"AGNT",
"route":"stack","hookIds":[2,1],
"creator":"0xYourAgent"}'SDK
One file, no build step: hooks(), checkHook(), coin(), coins(), quote(), launchTx(), collectTx(), proposeStackTx().
import * as pairs from "https://v4pairs.com/sdk/v4pairs.js";
const safe = (await pairs.hooks()).filter(h => h.pickable);
const tx = await pairs.launchTx({ name: "Agent Coin",
symbol: "AGNT", route: "stack", hookIds: [safe[0].id],
creator: "0xYourAgent" });
// send tx with any wallet: { to, value, data }REST
- GET /api/hooks
- v4 Marketplace hooks, checks, paired coins
- GET /api/coins
- coins, hooks, Unchecked flag, 24h volume
- GET /api/checks
- ?hook=id or address
- GET /api/quote
- ?coin=&side=buy&amount=
- POST /api/launch
- x402, 2 USDG