dYdX Seed Nodes & Peers
chain-id dydx-mainnet-1COSMOS● Crawled
Kingnodes runs a seed node for dYdX and crawls the network every 10 minutes. Point a new node at the seed to discover peers, pin a few verified live peers, or start from a fresh address book.
Seed nodes
A seed node hands a new node a list of peers and hangs up. Add ours to seeds under [p2p] in config.toml.
[email protected]:23856
seeds = "[email protected]:23856"Persistent peers
All 2 peers we verified in the last crawl, one per IP: each proved in a CometBFT handshake that it is the node its address names, on dYdX, and reported a current block height. Paste the line under [p2p], or copy the peers as comma-separated values.
persistent_peers = "[email protected]:26656,[email protected]:26656"State sync peers
One of the verified peers serves state sync snapshots. A node restoring by state sync finds a snapshot faster with a few of them in persistent_peers; these are the ones with the newest snapshots.
persistent_peers = "[email protected]:26656"Address book
31 addresses from our seeds' crawl, with private ranges and banned entries removed and a fresh bucket key. Stop the node and replace config/addrbook.json with it.
Permanent links
These URLs always serve the latest crawl, so scripts can keep using them. Peer lists are plain text, comma-separated; add &format=json (or ?format=json) for JSON.
- https://snapshots.kingnodes.com/api/network/dydx/peers?random=1
10 random verified peers, a new sample on every request. Add &count=N for up to 50.
- https://snapshots.kingnodes.com/api/network/dydx/peers
The 20 best-ranked verified peers.
- https://snapshots.kingnodes.com/api/network/dydx/peers?statesync=1
Verified peers serving state sync snapshots, newest snapshot first.
- https://snapshots.kingnodes.com/api/network/dydx/addrbook.json
The sanitized address book, gzip-encoded when accepted.
Set up a node
NODE_HOME="$HOME/.dydxprotocol"
# A random sample of verified live peers, refreshed every 10 minutes
PEERS="$(curl -sf 'https://snapshots.kingnodes.com/api/network/dydx/peers?random=1')"
sed -i "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" "$NODE_HOME/config/config.toml"
# Address book (stop the node first; it rewrites this file on shutdown)
curl -sfL --compressed https://snapshots.kingnodes.com/api/network/dydx/addrbook.json -o "$NODE_HOME/config/addrbook.json"These are the addresses nodes announce on the public peer-to-peer network. To have your node left out, email [email protected] with its node ID or IP. See the Privacy Policy.