dYdX Snapshots
chain-id dydx-mainnet-1COSMOS● Updated · 23 Nov 2026 20:00 UTC
dYdX Chain is the application-specific layer 1 behind the dYdX perpetuals exchange, built on Cosmos SDK and CometBFT. Validators keep an in-memory orderbook and run the Slinky oracle sidecar; non-validating full nodes follow the chain without it. Snapshot archives contain the data/ directory of ~/.dydxprotocol.
At a glance
Pruned snapshot
Pruned- Block
- 115,086,031
- Size
- 292.72 MB
- Age
- Node version
- 9.9.0
https://snapshots.kingnodes.com/api/network/dydx/latest/prunedAlways the newest pruned snapshot. curl -sI shows its block.
- Schedule
- Every 4 hours
- Retention
- Newest 2 kept, for up to 9 hours
- Compression
- zstd
- Node settings
- State-synced (history starts at the sync height) · pruning default
Archive snapshot
Archive- Block
- 114,545,142
- Size
- 10.67 TB
- Age
- Node version
- 9.9.0
- Schedule
- Weekly on Friday at 01:15 UTC
- Retention
- Newest 2 kept
- Compression
- zstd
- Node settings
- Full history (pruning nothing) · kv tx index · goleveldb
Archives need approved access.
Sign in to request accessAll available snapshots
4| Type | Block height | Size | Created | Download |
|---|---|---|---|---|
| Pruned | 115,086,031 | 292.72 MB | ||
| Pruned | 115,069,238 | 280.66 MB | ||
| Archive | 114,545,142 | 10.67 TB | ||
| Archive | 113,594,501 | 10.63 TB |
How to restore your dYdX node from a snapshot
- Stop the node:
sudo systemctl stop dydxprotocold - If it's a validator, back up
~/.dydxprotocol/data/priv_validator_state.json. - Empty
~/.dydxprotocol/dataand stream the latest pruned snapshot into~/.dydxprotocol. The archive containsdata/. - Put the validator state file back, start the node and follow its logs.
dYdX specifics
Run the dydxprotocold release that matches the chain version at the snapshot height, shown as Node version under At a glance. Official releases: https://github.com/dydxprotocol/v4-chain/releases (tags protocol/vX.Y.Z); the tarball unpacks to build/dydxprotocold-<version>-linux-<arch>, which you rename to dydxprotocold.
The official guide runs the node under Cosmovisor with DAEMON_ALLOW_DOWNLOAD_BINARIES=false, so binaries are placed by hand, in the upgrade folder named after the on-chain upgrade plan.
Full nodes must start with --non-validating-full-node=true. Validators must never use that flag; they need the Slinky oracle sidecar ([oracle] in app.toml) and, per the docs, --bridge-daemon-enabled=false.
The docs require on every node:
timeout_commit = "500ms"inconfig.toml- gRPC enabled on
0.0.0.0:9090 minimum-gas-prices = "0.025ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5,12500000000adydx"
Their pruning example (custom, keep-recent 7) is for validators and would discard the history in the archive snapshot.
# Stop the node and clear what the archive replaces before extracting over it.
DATA_DIR="$HOME/.dydxprotocol" # node home; the archive holds data/
curl -fL 'https://snapshots.kingnodes.com/api/network/dydx/latest/pruned' \
| zstd -dc | tar -xf - -C "$DATA_DIR"restore.sh does all four steps with safety checks, and stops before touching anything if a check fails. Run it as the user that owns the node home.
restore.sh · bash · 36 lines
#!/usr/bin/env bash
# Replaces the node's data/ with this snapshot and keeps your priv_validator_state.json.
# Save as restore.sh and run `bash restore.sh` as the user that owns DATA_DIR (not with sudo).
set -euo pipefail
SERVICE=dydxprotocold # systemd unit running the node (often the daemon name, or cosmovisor)
DATA_DIR="$HOME/.dydxprotocol" # node home; the archive holds data/
URL='https://snapshots.kingnodes.com/api/network/dydx/latest/pruned'
# Preflight: nothing is touched until these pass
command -v zstd >/dev/null || { echo "zstd is not installed" >&2; exit 1; }
[[ "$(tar --version 2>/dev/null)" == *"GNU tar"* ]] || { echo "GNU tar is required" >&2; exit 1; }
[ -d "$DATA_DIR/config" ] || { echo "$DATA_DIR/config not found; set DATA_DIR" >&2; exit 1; }
if [ -L "$DATA_DIR/data" ] && [ ! -d "$DATA_DIR/data" ]; then echo "$DATA_DIR/data is a broken symlink (unmounted disk?)" >&2; exit 1; fi
curl -fsSI -o /dev/null "$URL" # snapshot still downloadable? (not counted as a download)
trap 'echo "Restore failed: $SERVICE is still stopped. Fix the error above and re-run; your validator state backup is kept." >&2' ERR
sudo systemctl stop "$SERVICE"
# Keep your validator state. A backup left by an interrupted run is never overwritten.
BACKUP="$DATA_DIR/priv_validator_state.json.pre-restore"
if [ -f "$DATA_DIR/data/priv_validator_state.json" ] && [ ! -f "$BACKUP" ]; then
cp "$DATA_DIR/data/priv_validator_state.json" "$BACKUP"
fi
# Empty data/ but keep the directory itself, so a mount point or symlink survives.
# wasm/ is left in place; the archive overwrites the files it ships.
mkdir -p "$DATA_DIR/data"
find -H "$DATA_DIR/data" -mindepth 1 -delete
curl -fL "$URL" \
| zstd -dc | tar -xf - -C "$DATA_DIR" --no-same-owner --keep-directory-symlink
if [ -f "$BACKUP" ]; then mv "$BACKUP" "$DATA_DIR/data/priv_validator_state.json"; fi
sudo systemctl start "$SERVICE"
sudo journalctl -fu "$SERVICE"Need peers to sync? dYdX seed nodes, live peers and address book.
Pruned vs archive snapshots
Pruned snapshots keep only recent state, per the node settings under At a glance. They are the smallest download and the right choice for most RPC and validator nodes.
Archive snapshots keep full history for indexers, explorers and historical queries. They are much larger, and downloading them needs approved access for this network.