{"uid":"cap_iN8f8OI8bKVGREyvlck3D","slug":"plainchain-fortune-verifiable-on-chain-random-fortune-b4049075","name":"Plainchain Fortune — Verifiable On-Chain Random Fortune","description":"Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.","url":"https://plainchain.appin60.com/v1/fortune?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"of":32,"block":36581662,"chain":"Base","index":19,"fortune":"Simulate first. Sign second.","howPicked":"index = blockHash mod count"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001042","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.001042/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xsid-Snx8p6hdYtFWB2c8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001042","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a verifiably random fortune string selected by hashing the latest block on Base, providing tamper-resistant randomness anchored to blockchain state.","exampleAgentPrompt":"Give me a random fortune that's verifiably picked from the latest Base block — I want the fortune text plus the block number and index so I can confirm how it was chosen.","exampleUseCases":[{"title":"Agent decision tiebreaker with audit trail","prompt":"I need a provably fair coin-flip style decision for my agent — fetch a verifiable on-chain fortune from the latest Base block and tell me the fortune, block number, and how the index was picked so I can prove the choice wasn't manipulated."},{"title":"Daily on-chain fortune for a Web3 app","prompt":"Pull today's blockchain fortune from Base for my dapp's daily message — I want the fortune string, which block it came from, and the selection method so my users can verify it's random."},{"title":"Random seed for a game round","prompt":"My agent needs a tamper-proof random selection for this game round — get a fortune from Plainchain on Base and return the fortune text, block hash index, and block number so players can audit the randomness."}],"resultDescription":"Returns a JSON object containing: the fortune string, the total count of available fortunes, the Base block number used, the chain name, the index selected (blockHash mod count), and a plain-English description of how the index was picked (e.g. 'index = blockHash mod count').","failureModes":["Payment failure if USDC balance on Base is insufficient (x402 payment required)","Network or RPC error retrieving the latest block from Base","Stale or unavailable block data causing a timeout","Invalid or malformed response if the upstream chain node is unreachable"],"whenToPreferThis":"Choose this endpoint when you need verifiable, tamper-resistant randomness anchored to a real blockchain block hash — not pseudo-random numbers from a software PRNG. It is ideal for agents that need an auditable random result (e.g. games, lotteries, or fair selection) on Base with a sub-cent pay-per-call cost and no API key required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:40:48.920Z","isFirstParty":false,"canonicalSlug":"plainchain-fortune-verifiable-on-chain-random-fortune-b4049075"}