
Phala Mainnet
Run a node
1.Download JSON files
- Slug
- rollup.json
- rollup.json
- genesis.json
- genesis.json
2.Copy P2P configuration
- Static peers
/ip4/8.229.99.126/tcp/9222/p2p/16Uiu2HAmA7EmxHixJhunY6dZKi7nriyUfBCWP3aBPvGUsQBbigm1- EL peer
enode://19dc125dcaded04381d83491532136db96ec3cbb52cfe8ec62234d3a7b13db55869261ef662447fb9d9873b430e8f655706f4f08e93f4f763f9be2d0c455a5cc@8.229.99.126:30303
3.Copy public RPC URL
- RPC
Download snapshot
Replace the billing project ID and data directory, then run this command to download and extract the latest snapshot from the requester-pays bucket. Snapshots can take up to 4 hours to become available after you enable external nodes.
Snapshot location
gs://conduit-networks-snapshots/phala-mainnet-0gcloud storage
(
set -euo pipefail
export LC_ALL=C
export CLOUDSDK_BILLING_QUOTA_PROJECT="<billing-project-id>"
DATADIR="<path/to/datadir>"
PREFIX="gs://conduit-networks-snapshots/phala-mainnet-0"
mkdir -p "${DATADIR}"
WORK="$(mktemp -d "${DATADIR}/.snapshot.XXXXXX")"
trap 'rm -rf "${WORK}"' EXIT
if gcloud storage ls "${PREFIX}/snapshot_part_aa.tar.part" >/dev/null 2>&1; then
gcloud storage cp "${PREFIX}/snapshot_part_*.tar.part" "${WORK}/"
else
gcloud storage cp "${PREFIX}/latest.tar" "${WORK}/"
fi
cat "${WORK}"/* | tar -xf - -C "${DATADIR}"
)View the guide for more information.
4.Follow our guide