Skip to content

Solana Proof-of-History API

Read finalized block headers, audit Solana history, and retrieve cryptographic proofs for slots and transaction signatures.

Make a request

Check availability without a key.

curl --fail-with-body https://api.pipedev.network/v1/solana/poh/capabilities

Create a personal Pipe API key in the PoH dashboard, or select Enable PoH access on an existing key. Set the base URL and key in your shell.

export POH_API_BASE='https://api.pipedev.network/v1/solana/poh'
export PIPE_API_KEY='YOUR_PERSONAL_PIPE_API_KEY'
curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/tip"

All seven routes use GET and return JSON. The six archive reads accept Authorization: Bearer or X-API-Key with your personal Pipe API key.

What the archive covers

Solana’s Proof of History records the order of events as a sequence of SHA-256 hashes. Some entries mix in commitments to transaction signatures. Pipe indexes finalized Solana history so you can read a block’s header, look up its epoch, check a signature’s inclusion, or replay a block’s recorded entry chain.

Recent finalized block headers arrive through Solana RPC. Full PoH entries and epoch-based slot proofs depend on completed archive data being indexed. Use archive availability to check the current tip, then look up an epoch to see its indexed coverage.

For a first archive check, read slot 473903999, fetch its slot proof, and verify its entry chain. The examples below use that same archived block and a transaction in it.

Endpoint reference

Run the two exports in the quickstart before the authenticated examples. Responses below show selected fields from actual requests. Proof paths and entry arrays are shortened here. Use the complete API response to verify a proof.

Check archive availability

GET/capabilities

Use this public health and coverage check before requesting archive data. It returns the service state even when the archive is warming up or temporarily unavailable.

Request

curl --fail-with-body https://api.pipedev.network/v1/solana/poh/capabilities

Example response

{
  "state": "available",
  "indexed_epochs": 2,
  "archive_reads": true,
  "tip_slot": 474676890
}

Response fields

state
available, indexing, unavailable, or disabled. Check this field even when HTTP returns 200.
indexed_epochs
Number of epochs indexed by the archive.
tip_slot
Latest indexed slot when known.
archive_reads
Whether the archive is configured to read stored data. Check a specific epoch or slot for its coverage.

Get the latest indexed slot

GET/tip

Returns the header of the latest finalized block the service has indexed. Use it to track ingest progress or find a current slot to look up.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/tip"

Example response

{
  "slot": 474676893,
  "parent_slot": 474676892,
  "skipped": false,
  "blockhash": "32CcX21ZTvczh46Ca4zEy9tRAkKF46TgCXnCeJNtXSja",
  "poh_verified": null
}

Response fields

slot, parent_slot
The indexed slot and its parent. These are slot numbers.
blockhash, previous_blockhash
Base58 hashes for the block and its predecessor, when present.
poh_verified
The stored PoH verification result, or null when no result has been recorded.

Get a slot header

GET/slot/{slot}

Reads the indexed header and available commitment metadata for one slot. Use it to inspect a block, follow its parent, or check how the archive recorded a skipped slot.

Parameters

slot
Required path parameter. A non-negative integer Solana slot number.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/slot/473903999"

Example response

{
  "slot": 473903999,
  "parent_slot": 473903998,
  "skipped": false,
  "blockhash": "4n7paqaMYpmg8CkjxEtTub9deaWfxHDQrvxPhCxYphBz",
  "previous_blockhash": "86gYTf2vYVJhhdL6nCq5EASq9WYSqf3rqEA4KXVuY1Xw",
  "block_time": 1795643591,
  "tx_count": 709,
  "poh_verified": true
}

Response fields

skipped
True when the slot was recorded as skipped. Its blockhash can be null.
block_time, block_height
Unix timestamp in seconds and block height, when available.
tx_count, entry_count
Transaction and PoH entry counts recorded in the index. Recent live records can have limited entry data.
tx_merkle_root, entry_merkle_root
Base58 commitments for transactions and entries, when indexed.

Get an epoch summary

GET/epoch/{epoch}

Summarizes the indexed part of an epoch. Use it to check coverage, find its first and last produced blocks, and get the root used by slot proofs.

Parameters

epoch
Required path parameter. A non-negative integer Solana epoch number.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/epoch/1096"

Example response

{
  "epoch": 1096,
  "first_slot": 473472000,
  "last_slot": 473903999,
  "indexed_slots": 432000,
  "produced_slots": 431842,
  "skipped_slots": 158,
  "epoch_merkle_root": "fUrG62m5aeGxL7ZZQKeftbZGbQWfH9fs68som6wCAP8"
}

Response fields

first_slot, last_slot
The slot range represented by the summary.
indexed_slots, produced_slots, skipped_slots
Coverage and block-production counts for that epoch. A live epoch can be partial.
first_produced_slot, last_produced_slot
The first and last produced slots in the indexed range, when known.
epoch_merkle_root
Base58 root of the indexed slot commitments in the epoch.

Prove a slot is in the archive

GET/proof/slot/{slot}

Returns a two-level Merkle inclusion proof. The first path links the slot commitment to its epoch root. The second links that epoch root to Pipe’s root for the set of indexed epochs.

Parameters

slot
Required path parameter. A slot covered by an indexed epoch proof.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/proof/slot/473903999"

Example response

{
  "slot": 473903999,
  "epoch": 1096,
  "slot_leaf": "4i8f1JePF29uVMXuRPV4BXBtpT8St2S2ybUuoMrsi5Sa",
  "slot_merkle_path": [
    {
      "sibling": "3as7MHtDfG1dVphibjtdQkXHADQSQ8kxRgHGg2igA9CG",
      "is_left": true
    }
  ],
  "epoch_merkle_root": "fUrG62m5aeGxL7ZZQKeftbZGbQWfH9fs68som6wCAP8",
  "epoch_merkle_path": [
    {
      "sibling": "228f728ozWARsatt6mB9n22dwZaMm1AjtuBSkye1bGpB",
      "is_left": false
    }
  ],
  "global_chain_root": "Fi9CqcprWBvEpwrn3wQPjBkv2C6N4pYN6trV9BfzGFHH",
  "verified": true
}

Response fields

slot_header, slot_leaf
The indexed header and its Base58 commitment.
slot_merkle_path, epoch_merkle_root
The path from the slot commitment to the epoch root.
epoch_merkle_path, global_chain_root
The path from the epoch root to the archive root. The archive root can change as coverage grows.
verified
True when the service verified both paths against the returned roots.

Verify a slot’s PoH entry chain

GET/verify/{slot}

Loads the available PoH entries for a slot and replays its SHA-256 chain from the previous blockhash. The service checks the recorded entry hashes and compares the final entry hash with the recorded blockhash when present.

Parameters

slot
Required path parameter. For full replay, use a produced slot with archived PoH entries.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/verify/473903999"

Example response

{
  "slot": 473903999,
  "previous_blockhash": "86gYTf2vYVJhhdL6nCq5EASq9WYSqf3rqEA4KXVuY1Xw",
  "blockhash": "4n7paqaMYpmg8CkjxEtTub9deaWfxHDQrvxPhCxYphBz",
  "live_sha256_verified": true,
  "live_verify_ms": 0.08419,
  "total_poh_hashes": 699,
  "entries": [
    {
      "entry_index": 0,
      "num_hashes": 1,
      "hash": "EdrsQqBHYx9UExteuFjQVNDkFKCYTxrr3vvdM6G5snxt",
      "starting_tx_index": 0,
      "tx_count": 1,
      "tx_sigs_merkle_root": "BfDK1Apgo3HimJjzNk8hv1N8twnYUA9MpeQGicZRCg5e"
    }
  ]
}

Response fields

live_sha256_verified
True when the replay passed, false when the check failed, or null when the inputs needed for replay were unavailable.
live_verify_ms
Time spent replaying the chain on the server when computed.
entries
Ordered entry data, including each hash, hash count, and transaction count. Transaction-bearing entries can include a signature Merkle root.
entries_loaded_from_b2
Number of entries returned by the endpoint.

Prove transaction signature inclusion

GET/tx/{signature}/proof?slot={slot}

Proves that a transaction signature is a member of the signature Merkle tree for a known slot. Use the transaction’s slot from finalized RPC or another trusted index. The response describes signature inclusion in that tree.

Parameters

signature
Required path parameter. A Base58-encoded 64-byte transaction signature.
slot
Required query parameter. The non-negative integer slot that contains the transaction.

Request

curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" \
  "$POH_API_BASE/tx/59P4czyMtuDTCysUByaV3HvjALEcAZLd4YsQPXNx9FjPuNBxUUJwEgCeiK5xGyMLECDx3DqSdK8Hfz6Yj43HHCJW/proof?slot=473903999"

Example response

{
  "signature": "59P4czyMtuDTCysUByaV3HvjALEcAZLd4YsQPXNx9FjPuNBxUUJwEgCeiK5xGyMLECDx3DqSdK8Hfz6Yj43HHCJW",
  "slot": 473903999,
  "tx_index": 0,
  "tx_count_in_tree": 709,
  "merkle_root": "3fwGtCZoEWVSZeYXtkeijVovAmZ4PxpbA1QK5JUA9zWY",
  "merkle_path": [
    {
      "sibling": "5X71rLAu7JQmJEAa1D9Vx5c9jTqEx6usAntUnBSFWT4n",
      "is_left": false
    }
  ],
  "source": "cold_b2_parquet",
  "verified": true
}

Response fields

tx_index, tx_count_in_tree
The signature’s zero-based index and the number of signatures in the tree.
merkle_root, merkle_path
The Base58 signature tree root and the sibling steps needed to check inclusion.
verified
True when the service verified the signature path against the returned root.

How to check a proof

  1. Decode Base58 hashes and signatures to raw bytes before hashing.
  2. Start with SHA-256(0x00 || leaf). For each path item, use SHA-256(0x01 || left || right) with the sibling on the left when is_left is true. Here || means byte concatenation.
  3. For a slot proof, check the slot leaf against epoch_merkle_root. Use that epoch root as a new leaf and check the second path against global_chain_root. For a transaction proof, use the decoded signature as the leaf and check merkle_path against merkle_root.

To bind the returned slot header to a slot proof, recompute slot_leaf using SHA-256 over the following bytes in order. Use little-endian 64-bit integers, one byte for skipped (0 or 1), and 32 zero bytes for an absent hash.

UTF-8("solanapoh:slot:v1") || slot || parent_slot || skipped
|| blockhash || previous_blockhash || tx_merkle_root
|| entry_merkle_root || total_poh_hashes

A matching path proves membership relative to its root. Use a root you trust for the intended archive snapshot and check the recorded blockhash against a trusted finalized Solana source when you need to establish canonical history.

Errors and retries

400
Check path parameters and query strings. Transaction proofs require the slot query parameter.
401
Send a valid personal Pipe API key. Revoked and disabled keys also receive 401.
403
Enable Solana PoH access for the key in the dashboard.
404
Check the requested slot, epoch, or signature against available coverage.
429
The archive is busy or rate-limited. Reduce concurrency and retry with exponential backoff.
500
The control plane encountered an unexpected error. Retry a read after a short delay.
503
The archive could not serve the request. Check /capabilities and retry with backoff.