Skip to content

Instantly share code, notes, and snippets.

@ripatel-fd
ripatel-fd / snapshots.md
Last active July 9, 2024 19:00
Informal Guide to Solana Snapshots

Consider this an informal guide to reading the Solana snapshot format. This guide is written for Solana Labs versions v1.14 through v1.17.

You are probably reading this because you want to read the accounts in a snapshot without going through the pain of interfacing with the Solana Labs codebase.

Terminology

We assume general familiarity with the Solana ledger.

#!/usr/bin/env bash
BINDIR=./target/debug
TESTDIR=./gen-ledger
FAUCET_KEYPAIR="$TESTDIR"/bootstrap/faucet-keypair.json
CONFIG="$TESTDIR"/config.yml
VALIDATOR_CNT=4
BOOTSTRAP_RPC="http://127.0.0.1:8899"
BOOTSTRAP_GOSSIP="127.0.0.1:8000"
WARMUP_SLOT=20
@ripatel-fd
ripatel-fd / _README.txt
Last active June 8, 2023 09:01
Solana data rate
Columns
<slot> Slot number
<ts> Milliseconds since unix epoch
<block_raw_bytes> Raw serialized size of block
<block_zstd_bytes> zstd-compressed size of block