x402 v2 uses PAYMENT-REQUIRED, PAYMENT-SIGNATURE, and PAYMENT-RESPONSE headers
In x402 v2 a server answers an unpaid request with HTTP 402 and a PAYMENT-REQUIRED header holding a base64-encoded…
5 short, version-pinned x402 (v2 SDKs) snippets, each citing an official source. Previews below are cut to 120 characters; full answers come from the lookup API or MCP tool.
How to get full answers. 20 free lookups on a client's first day, then 5 free per day (per client IP). After that each lookup is $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. No account or API key.
GET https://llmdocs.dev/v1/docs/lookup?library=x402&q=YOUR_QUESTION (or the docs_lookup MCP tool).PAYMENT-REQUIRED challenge (USDC, PYUSD, or USDT on Solana mainnet, each at $1).@x402/fetch) and retry with the PAYMENT-SIGNATURE header.In x402 v2 a server answers an unpaid request with HTTP 402 and a PAYMENT-REQUIRED header holding a base64-encoded…
Install @x402/fetch plus @x402/svm (and @x402/evm for Base). Create a signer with createKeyPairSignerFromBytes from…
Install @x402/express, @x402/core, and the mechanism packages you accept (@x402/evm, @x402/svm). Build new…
x402 v2 names networks in CAIP-2 form: Base mainnet eip155:8453, Base Sepolia eip155:84532, Solana mainnet…
Install pip install "x402[httpx]" and add "x402[svm]" for Solana. Create client = x402Client() (from x402), register a…
Remote MCP endpoint: https://llmdocs.dev/mcp. Streamable HTTP, no API key, no account. 20 free lookups on a client's first day, then 5 free per day, then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT.
claude mcp add --transport http llmdocs https://llmdocs.dev/mcp
{
"mcpServers": {
"llmdocs": {
"url": "https://llmdocs.dev/mcp"
}
}
}