Agentic payments
This walkthrough hits a real x402 paywall on this site, pays it with real devnet USDC from an agent wallet, and settles on-chain through the Solinkify escrow program. No sign-up, no dashboard, no sales call. The 402 response is the entire onboarding.
Request the demo feed the way an AI crawler would. The server answers HTTP 402 with an x402 v2 PAYMENT-REQUIRED header and a payment manifest: price, settlement token, and how to pay.
curl -sD - -A "GPTBot/1.0" https://www.solinkify.com/api/demo-feedPrice is $0.001 per request, settled in USDC on Solana devnet. Humans with a browser are never blocked; only AI agents meet the paywall.
Any standard Solana keypair works. Fund it with a little devnet SOL (fees) and devnet USDC from Circle's faucet.
solana-keygen new --no-bip39-passphrase -o agent.json
solana airdrop 1 "$(solana address -k agent.json)" --url devnet
# devnet USDC: https://faucet.circle.com → Solana Devnet → paste the addressThe MCP server gives any MCP-capable agent (Claude Code, Claude Desktop, and others) 15 tools across the Solinkify ecosystem, with fail-closed spending caps: $1 per payment and $10 per day by default.
claude mcp add solinkify -e SOLINKIFY_WALLET_PATH=$PWD/agent.json -- npx -y @solinkify/mcpOr in any MCP host config:
{
"mcpServers": {
"solinkify": {
"command": "npx",
"args": ["-y", "@solinkify/mcp"],
"env": { "SOLINKIFY_WALLET_PATH": "/path/to/agent.json" }
}
}
}Ask the agent:
Fetch https://www.solinkify.com/api/demo-feed and pay the paywall if there is one.Behind that one sentence: the agent reads the 402 manifest, locks 0.001 USDC into a program-owned escrow on Solana, retries with the payment proof, and gets the content. The payment binds to this exact endpoint, amount, and mint, and can never be replayed.
The lock transaction signature comes back in the tool result. Paste it into Solana Explorer (devnet) to see the settlement on-chain, including the 99% release to the creator wallet.
A machine discovered a price, authorized a payment under a spending cap, settled a stablecoin micropayment on-chain, and consumed the resource, with no human account, no API key, and no invoice. That is agentic payments, anchored on the x402 standard. The same flow protects any URL: one line of middleware for JS frameworks, Python, WordPress, Kong, or a standalone reverse proxy for everything else.