# Latest Solana Blockhash Lookup

> Latest Solana Blockhash Lookup is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Returns the latest Solana blockhash and its validity duration (last-valid block height) via a pay-per-call x402 endpoint

## Facts

- Endpoint: POST https://twin.unykorn.org/solana-blockhash?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latest-solana-blockhash-lookup-21989326
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ONz3JxV6iTcprswt2iWLi

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 latest-solana-blockhash-lookup-21989326 -d '<json body>'
```

Example prompt: What's the current Solana blockhash and how many blocks does it stay valid for? I need it to sign and submit a transaction.

## When to prefer this

Use this endpoint when you need a fresh, authoritative Solana blockhash in a pay-per-call context without managing your own Solana RPC node. Ideal for AI agents or automated pipelines that occasionally need a blockhash on demand and want a simple REST interface with x402 micropayment billing rather than a persistent WebSocket or full RPC connection.

## Known failure modes

- Payment failure — x402 payment not accepted or insufficient funds causes a 402 response
- Network or RPC error — Solana RPC node unreachable returns an error response
- Stale result — blockhash returned may expire quickly (~150 blocks, ~60–90 seconds) if not used promptly
- Invalid request body — malformed params object causes a 400-level error

## How this service works

Latest Solana blockhash and how long it stays valid — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok=true, the blockhash type identifier ('solana-blockhash'), a payment receipt containing the transaction hash, USD amount paid, and a receipt ID, plus a generated_at ISO8601 timestamp. The blockhash value and last-valid block height are included in the response payload for use in transaction construction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {}
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "solana-blockhash",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latest-solana-blockhash-lookup-21989326/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
