blockhash
Run right before building a transaction you'll sign. Blockhashes expire after about 60-90 seconds; this tells you how long is left. Gives a fresh blockhash plus how many blocks, and roughly how many seconds, are left before it expires. Inputs: network (optional): Which Solana network to read. Default "mainnet-beta" (real money). Cost: 25 free calls a day, then $0.01 USDC per call (x402). Full field-by-field docs: GET /api/tools/blockhash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Which Solana network to read. Default "mainnet-beta" (real money). Leave it out for mainnet. Use "devnet" only for test wallets. | mainnet-beta |