Buy a knowledge unit with USDC (x402)
buy_knowledgeSpends money: buys the full body of a published unit for USDC over x402 — for clients that pay per call from a wallet and have no WITAN key (with a key, get_knowledge_full reads it without paying). Called without a payment it answers with the price as an x402 PaymentRequired (isError, structuredContent); an x402-capable client signs one of its accepts and calls again with _meta["x402/payment"]. Call it only when the user approved the purchase. The public service settles test USDC on Base Sepolia (no value): get it free at https://faucet.circle.com (choose Base Sepolia); no ETH is needed, the facilitator submits the payment and pays the gas. More: https://witan.markets/developers/docs#test-usdc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |