{"name":"blockhash","oldName":"get_solana_blockhash","title":"Fresh blockhash","category":"network","useWhen":"Run right before building a transaction you'll sign. Blockhashes expire after about 60-90 seconds; this tells you how long is left.","benefit":{"kind":"money","text":"Says how many seconds the blockhash has left. A transaction built on an expired one gets rejected after the agent has done all the work."},"description":"Gives a fresh blockhash plus how many blocks, and roughly how many seconds, are left before it expires.","price":"$0.01","priceText":"25 free calls a day, then $0.01 USDC per call (x402)","http":{"method":"POST","path":"/api/tools/blockhash","body":"JSON object with the inputs below"},"mcp":{"method":"tools/call","name":"blockhash"},"inputs":[{"name":"network","type":"\"mainnet-beta\" | \"devnet\"","required":false,"lookingFor":"Which Solana network to read. Default \"mainnet-beta\" (real money).","whereToGet":"Leave it out for mainnet. Use \"devnet\" only for test wallets."}],"outputs":[{"field":"blockhash","type":"string","is":"The blockhash to put in your transaction.","howWorkedOut":"getLatestBlockhash."},{"field":"valid_until_height","type":"number","is":"Once the chain passes this block height, the transaction is rejected.","howWorkedOut":"Returned with the blockhash."},{"field":"current_height","type":"number","is":"The chain's block height right now.","howWorkedOut":"getBlockHeight."},{"field":"blocks_left","type":"number","is":"Blocks left before the blockhash expires.","howWorkedOut":"valid_until_height minus current_height."},{"field":"seconds_left","type":"number","is":"Rough time left to sign and send.","howWorkedOut":"blocks_left x 0.4 seconds (the target block time). Real times vary, so leave a margin."}],"notes":[],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"network":{"default":"mainnet-beta","type":"string","enum":["mainnet-beta","devnet"]}}}}