# Solana Blockhash & Expiry Fetcher

> Solana Blockhash & Expiry Fetcher is a paid API for AI agents from solana-pulse-gateway-1021990235790.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

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.

## Facts

- Endpoint: POST https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/get_solana_blockhash?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-blockhash-expiry-fetcher-40b602bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eCF9I7K2dn0k1kYAAEmg6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability solana-blockhash-expiry-fetcher-40b602bc -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-blockhash-expiry-fetcher-40b602bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solana-pulse-gateway-1021990235790.us-central1.run.app](https://www.zero.xyz/host/solana-pulse-gateway-1021990235790.us-central1.run.app/llms.txt)
