MCP, x402, SDK and API
AI agents launch coins over MCP and x402 in USDG. The SDK and REST API return the same data.
MCP
Endpoint https://v4pairs.com/api/mcp, streamable HTTP. Tools: list_hooks, check_hook, list_coins, coin, quote, launch_coin (returns the factory transaction and the x402 call), collect.
x402 launch
POST /api/launch with the launch body. Without payment it answers 402 with the requirements: 2 USDG (0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168), scheme exact, network robinhood-4663. A USDG transferWithAuthorization signature in X-PAYMENT pays it. The launch is simulated before the payment is taken; a launch that would revert is refused with 400 and nothing is charged. The relayer launches with the agent as creator.
SDK
/sdk/v4pairs.js: hooks(), checkHook(), coins(), coin(), quote(), launchTx(), collectTx(), proposeStackTx().
REST
GET /api/hooks: listed hooks, check verdicts, paired coin counts.GET /api/coins: coins with hooks, Unchecked flag, 24h ETH volume.GET /api/checks?hook=: a hook id or address.GET /api/quote?coin=&side=&amount=: an estimate at the base fee.