{"uid":"cap_wySaN92l1WdG6oARTqJbK","slug":"lion-credits-purchase-x402-keyless-e82730ce","name":"LION Credits Purchase (x402 Keyless)","description":"Keyless off-chain and on-chain data for AI agents. No API key, no signup - payment is the only gate. Pay-per-call in USDC on Base via x402.","url":"https://lion-x402.lionmaster-operations.workers.dev/api/x402/credits-purchase-json","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"type":"object","properties":{"pack":{"type":"string","description":"USD pack size e.g. 0.10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"asset_id":"CREDITS_PURCHASE_001","balance_micro":"100000","session_token":"lct_..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o0X4jlQzNHkJl3txJlKvO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a LION session credit bundle via x402 micropayment, returning a session token and credit balance usable for subsequent keyless data/RPC calls","exampleAgentPrompt":"Purchase a LION credits session for me using x402 — pay $0.10 in USDC on Base so I can get a session token and start making keyless data and RPC calls without needing an API key.","exampleUseCases":[{"title":"Bootstrap agent blockchain data access","prompt":"Set up a LION session for my agent so it can query on-chain data without managing API keys — just pay whatever it costs in USDC on Base and get me a session token to use."},{"title":"Fund autonomous RPC calls for crypto app","prompt":"I need my agent to make keyless RPC calls to Base for smart contract interactions — buy a LION credits bundle with $0.25 USDC micropayment and give me the session token so it's ready to go."},{"title":"Enable pay-per-call data queries instantly","prompt":"My agent needs immediate access to LION's off-chain and on-chain data without signing up for anything — just charge my Base wallet the minimum amount, get a session token, and let it start querying right away."}],"resultDescription":"Returns a JSON object with an asset_id (e.g. CREDITS_PURCHASE_001), balance_micro indicating the purchased credit balance in micro-units (e.g. 100000), and a session_token (lct_...) that can be used to authenticate subsequent LION data/RPC calls without a traditional API key.","failureModes":["Payment not received or insufficient USDC — x402 payment handshake fails, 402 response returned","Payment on wrong chain (not Base) — transaction rejected","Session token not returned if payment confirmation times out","Duplicate payment attempt may create a new session rather than topping up existing one"],"whenToPreferThis":"Use this endpoint when an AI agent needs to bootstrap keyless access to LION's off-chain and on-chain data or RPC endpoints. It is the entry point for any LION session: pay once in USDC on Base via x402, receive a session token, and use that token for all subsequent LION API calls without registering or managing API keys. Prefer this over traditional API-key-based data providers when operating in a crypto-native, agent-first environment where programmatic micropayments are available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:39:21.291Z","isFirstParty":false}