dYdX Snapshots

dYdX protocol was developed over Ethereum smart contracts and STARK (zero-knowledge) Rollups technology provided by Starkware. This implementation allows the platform to create a highly secure, decentralized, and privacy-focused infrastructure by leveraging StarkWare's zero-knowledge proofs (ZK). To achieve decentralization, dYdX relies heavily on trustless protocols that are publicly extensible and do not require any permission. dYdX aims to provide a secure and efficient way for users to access decentralized financial services, such as trading, borrowing, and lending, without the need for intermediaries like traditional banks.

dYdX testnet Snapshot

Version
Creation Date
Last Updated
Block Number
Pruning modePruned
Size47M
Download dYdX testnet Snapshot

How to use

Download the snapshot

wget https://snapshots.bwarelabs.com/dydx/testnet/dydx20240419.tar.lz4

If dYdX was already on your machine, stop your dYdX service

sudo systemctl stop dydx.service

OR container

docker stop <DYDX_CONTAINER_NAME>

AND make sure there is no process running that might try to write to the database

ps -ef | grep dydx-node

Make sure your dYdX data directory is clean (let us assume <DYDX_HOME> is your root dYdX directory)

Make sure to backup your priv_validator_state.json file before deleting the contents of the data directory

mv <DYDX_HOME>/data/priv_validator_state.json <DYDX_HOME>

Make sure your dydx data directory is clean (let us assume <DYDX_HOME> is your root dYdX directory)

rm -rf <DYDX_HOME>/data/*

Make sure you have lz4 installed

sudo apt-get install lz4

Decompress the archive

lz4 -c -d dydx20240419.tar.lz4 | tar -x -C <DYDX_HOME>/data

Copy back the priv_validator_state.json file

rm <DYDX_HOME>/data/priv_validator_state.json

mv <DYDX_HOME>/priv_validator_state.json <DYDX_HOME>/data/

Start the dYdX service OR container!

dYdX mainnet Snapshot

Versionv4.0.5
Creation Date
Last Updated
Block Number
Pruning modePruned
Size146M
Download dYdX mainnet Snapshot

How to use

Download the snapshot

wget https://snapshots.bwarelabs.com/dydx/mainnet/dydx20240418.tar.lz4

If dYdX was already on your machine, stop your dYdX service

sudo systemctl stop dydx.service

OR container

docker stop <DYDX_CONTAINER_NAME>

AND make sure there is no process running that might try to write to the database

ps -ef | grep dydx-node

Make sure your dYdX data directory is clean (let us assume <DYDX_HOME> is your root dYdX directory)

Make sure to backup your priv_validator_state.json file before deleting the contents of the data directory

mv <DYDX_HOME>/data/priv_validator_state.json <DYDX_HOME>

Make sure your dydx data directory is clean (let us assume <DYDX_HOME> is your root dYdX directory)

rm -rf <DYDX_HOME>/data/*

Make sure you have lz4 installed

sudo apt-get install lz4

Decompress the archive

lz4 -c -d dydx20240418.tar.lz4 | tar -x -C <DYDX_HOME>/data

Copy back the priv_validator_state.json file

rm <DYDX_HOME>/data/priv_validator_state.json

mv <DYDX_HOME>/priv_validator_state.json <DYDX_HOME>/data/

Start the dYdX service OR container!

What is dYdX snapshot?

Our dYdX snapshot can be particularly valuable when syncing a new node to the testnet or mainnet network. Instead of downloading and validating the entire blockchain from scratch, a new node can use a snapshot to quickly synchronize within the network.

Why use our dYdX snapshot?

Using our snapshots during the setup of full dYdX chain nodes can significantly speed up the syncing process by skipping the validation of all data. This can greatly enhance the speed of the setup. Instead of syncing from scratch with other nodes, you can utilize our dYdX snapshot to sync faster.

What is the block number of dYdX Snapshot?

A node snapshot is a snapshot of the blockchain at a specific point in time, and it includes data and state of the blockchain up until that block number. The block number determines the specific point in the blockchain's history that the snapshot represents.

The current block number of dYdX testnet snapshot is

The current block number of dYdX mainnet snapshot is

How often is the dYdX snapshot updated?

Regular updates are made to ensure accurate and up-to-date information. The frequency of the updates depends on the specific data being captured. We regularly update our snapshots to reflect the most recent and accurate state of the dYdX chain.

The most recent update to the dYdX testnet was on

The most recent update to the dYdX mainnet was on

How long does it take to restore a node using dYdX Snapshot?

The time it takes to restore a node using a snapshot can vary depending on several factors, including the size of the snapshot file and the performance of the underlying hardware. In general, the process involves transferring the snapshot data to the node's storage and then initializing the node from that snapshot. For smaller snapshots, the restoration process can be relatively quick and may take just a few minutes. However, for larger snapshots or in cases where the network or storage infrastructure is slower, the restoration process can take longer, potentially several hours.

The dYdX testnet size is 47M.

The dYdX mainnet size is 146M.

What does it mean if a snapshot is pruned?

The pruning of a node snapshot refers to the process of removing unnecessary data from the blockchain database to optimize storage space while keeping the integrity of the data. Pruning allows nodes to store only the most essential information needed for the blockchain's operation while discarding older and less relevant data.

The dYdX testnet snapshot is pruned.

The dYdX mainnet snapshot is pruned.

What is the main difference between pruned and archival nodes?

Pruned and archival node snapshots are two different approaches to storing blockchain data in a more efficient manner. Pruned node snapshots prioritize storage efficiency by discarding older transaction data, while archival node snapshots prioritize preserving the complete blockchain state.

Subscribe to our newsletter and never skip a beat!

Get updates on our latest news and product releases.

Get your API Endpoint from Blast

If you are in need of blockchain access through some of the fastest and most reliable infrastructure services, try out our API platform and get your project started in just a couple of clicks.

Learn more about Blast API