{"uid":"cap_eCF9I7K2dn0k1kYAAEmg6","slug":"solana-blockhash-expiry-fetcher-40b602bc","name":"Solana Blockhash & Expiry Fetcher","description":"Use right before building a transaction you will sign. Blockhashes expire after about 60-90 seconds; this tells you how much time is left. Returns a fresh blockhash plus how many blocks and roughly how many seconds remain before it expires.","url":"https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/get_solana_blockhash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SWZQ9DQAsngO0J9guIUdw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a fresh Solana blockhash along with the number of blocks and approximate seconds remaining before it expires, so agents can time transaction construction correctly.","exampleAgentPrompt":"Before you build my Solana transaction, grab a fresh blockhash and tell me how many seconds I have left before it expires so we don't run out of time.","exampleUseCases":[{"title":"Pre-transaction blockhash timing check","prompt":"I'm about to sign a Solana transaction — can you fetch a fresh blockhash right now and tell me how many seconds I have left before it expires?"},{"title":"Avoiding expired blockhash errors","prompt":"My last Solana transaction failed because the blockhash was stale. Before we retry, get me a new one and show me how much time is left on it."},{"title":"Agent transaction pipeline coordination","prompt":"We're building a multi-step Solana transaction workflow — fetch a fresh blockhash with its expiry countdown so we know how tight our signing window is."}],"resultDescription":"Returns a fresh recent blockhash string for use in Solana transaction construction, along with the number of blocks remaining until it expires and an approximate seconds-remaining countdown (blockhashes typically last 60–90 seconds / ~150 blocks).","failureModes":["RPC node unavailable or rate-limited — returns error with no blockhash","Network congestion causing stale slot data — blockhash returned may have reduced TTL","Request times out due to Solana RPC latency spike","Payment of $0.01 USDC not processed — request rejected by x402 gateway"],"whenToPreferThis":"Use this endpoint immediately before constructing a Solana transaction that will be signed, especially when your agent needs to know precisely how much time remains in the blockhash validity window. It is more informative than a raw RPC call because it surfaces the expiry countdown (blocks and seconds remaining), helping agents avoid the common failure mode of submitting a transaction with an already-expired blockhash.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:44:54.002Z","isFirstParty":false,"canonicalSlug":"solana-blockhash-expiry-fetcher-40b602bc"}