{"uid":"cap_PPbj-sTq-pY9yo_InDCFb","slug":"x402-swarms-production-up-railway-app-ab937652","name":"Solana Recent Blockhash Lookup","description":"Provides a current Solana recent blockhash for building and signing transactions; requires payment in USDC on Solana.","url":"https://x402-swarms-production.up.railway.app/x402/recent-blockhash","method":"POST","headers":{},"bodySchema":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"type":"string"}}},"responseSchema":{"type":"object","required":["cached","payment","blockhash","queriedAt","timestamp","lastValidBlockHeight"],"properties":{"cached":{"type":"boolean"},"payment":{"type":"object","required":["amount"],"properties":{"amount":{"type":"string"}}},"blockhash":{"type":"string"},"queriedAt":{"type":"string"},"timestamp":{"type":"number"},"lastValidBlockHeight":{"type":"number"}}},"example":{"request":{"amount":0.001,"currency":"USDC"},"response":{"cached":false,"payment":{"amount":"0.001"},"blockhash":"ADsqWwLwGHjkTZdNi4C6iDh3nDYbsKvXojeDwrCe23mK","queriedAt":"2026-04-17T20:37:26.438Z","timestamp":1776458246438,"lastValidBlockHeight":391988918}},"exampleRequest":{"amount":0.001,"currency":"USDC"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JGiVyZozv2T7lR501gjw7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a current Solana recent blockhash and last valid block height for use in building and signing transactions, paid via USDC on Solana.","exampleAgentPrompt":"I need to build and sign a Solana transaction — can you fetch a current recent blockhash and last valid block height from the Solana network? Pay 0.001 USDC for the lookup.","exampleUseCases":[{"title":"Sign Solana token transfer transaction","prompt":"I want to send some SOL to another wallet — can you grab a fresh Solana blockhash and last valid block height so I can build and sign the transfer transaction? Use 0.001 USDC to pay for the lookup."},{"title":"Automate Solana NFT minting flow","prompt":"I'm minting an NFT on Solana and need a current blockhash to assemble the transaction before it expires — can you fetch the latest blockhash and block height right now? Go ahead and pay the 0.001 USDC fee."},{"title":"Validate blockhash before transaction submission","prompt":"Before I submit this Solana transaction, I need to confirm I have a valid and recent blockhash that won't be rejected by the network — can you fetch a fresh one along with the last valid block height? Pay 0.001 USDC for the call."}],"resultDescription":"Returns a JSON object containing a recent Solana blockhash string, the last valid block height (integer), a timestamp and ISO queriedAt string, a flag indicating whether the result was cached, and the payment amount used for the request.","failureModes":["Insufficient payment amount — payment amount does not meet required $0.001 USDC threshold","Invalid currency — only USDC on Solana is accepted","Solana RPC unavailable — upstream network error fetching blockhash","Stale/cached blockhash returned — cached:true flag indicates blockhash may be slightly older","Payment verification failure — x402 payment not confirmed on-chain"],"whenToPreferThis":"Use this endpoint when an agent or application needs a fresh Solana recent blockhash to construct or sign a transaction programmatically, especially in pay-per-call microservice architectures using the x402 payment protocol. Prefer this over direct RPC calls when you want a simple HTTP API abstraction with metered billing in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:37:46.576Z","isFirstParty":false}