{"uid":"cap_ONz3JxV6iTcprswt2iWLi","slug":"latest-solana-blockhash-lookup-21989326","name":"Latest Solana Blockhash Lookup","description":"Latest Solana blockhash and how long it stays valid — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/solana-blockhash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"solana-blockhash","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3JvTQwJpV9GBXDf4pGuzV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest Solana blockhash and its validity duration (last-valid block height) via a pay-per-call x402 endpoint","exampleAgentPrompt":"What's the current Solana blockhash and how many blocks does it stay valid for? I need it to sign and submit a transaction.","exampleUseCases":[{"title":"Build and sign a Solana transaction","prompt":"I'm about to construct and sign a Solana transaction — can you grab the latest blockhash and tell me how long it stays valid so I can include it in the transaction?"},{"title":"Check blockhash freshness before submission","prompt":"Before I submit this Solana transaction, can you fetch the current blockhash and confirm how many more blocks it'll be valid for?"},{"title":"Automate Solana transaction pipeline","prompt":"My agent needs to automatically fetch a fresh Solana blockhash every time it prepares a new transaction — can you get the latest one and its expiry right now?"}],"resultDescription":"Returns a JSON object with ok=true, the blockhash type identifier ('solana-blockhash'), a payment receipt containing the transaction hash, USD amount paid, and a receipt ID, plus a generated_at ISO8601 timestamp. The blockhash value and last-valid block height are included in the response payload for use in transaction construction.","failureModes":["Payment failure — x402 payment not accepted or insufficient funds causes a 402 response","Network or RPC error — Solana RPC node unreachable returns an error response","Stale result — blockhash returned may expire quickly (~150 blocks, ~60–90 seconds) if not used promptly","Invalid request body — malformed params object causes a 400-level error"],"whenToPreferThis":"Use this endpoint when you need a fresh, authoritative Solana blockhash in a pay-per-call context without managing your own Solana RPC node. Ideal for AI agents or automated pipelines that occasionally need a blockhash on demand and want a simple REST interface with x402 micropayment billing rather than a persistent WebSocket or full RPC connection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:46.973Z","isFirstParty":false,"canonicalSlug":"latest-solana-blockhash-lookup-21989326"}