You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Setup XDC Masternode(Full Node)/Standby node using Snapshots
471
+
472
+
### Prerequisites
473
+
474
+
* A server or cloud instance (minimum 16 GB RAM, 1.5 TB storage)
475
+
* Ubuntuoperating system
476
+
* Basic Linux command-line knowledge
477
+
478
+
### Setting up the Node Environment using Bootstrap
479
+
480
+
Its the primary options for setting up your XDC Network node environment: using the bootstrap.sh script for a quick setup
481
+
482
+
Using the Bootstrap Command for Quick Setup
483
+
This command automates the installation of necessary dependencies and sets up the basic node environment.
484
+
485
+
```
486
+
sudo su -c "bash <(wget -qO- https://raw.githubusercontent.com/XinFinOrg/XinFin-Node/master/setup/bootstrap.sh)" root
487
+
```
488
+
489
+
**You will be prompted to enter:**
490
+
491
+
-**XinFin Network (mainnet/testnet/devnet):** Type mainnet for the main XDC Network.
492
+
493
+
-**XinFin MasterNode Name:** Provide a name for your node (e.g.,Rushabh-Snapshot-Node).
494
+
495
+
-**Generate new private key and wallet address:** If you have your own key, you can change after this and restart the node: Enter y or Y and continue.
496
+
497
+

498
+
499
+
Once the installation on your Ubuntu server is complete, attach to the node using the following command to verify that the blockchain synchronization has begun
500
+
501
+
```
502
+
bash xdc-attach.sh
503
+
```
504
+
505
+

506
+
507
+
You can monitor the status of your node using the above command or by visiting the official stats page at https://xinfin.network/#stats Once you've confirmed that the node has begun syncing from the genesis block, stop the node by running:
508
+
509
+
```
510
+
bash docker-down.sh
511
+
```
512
+

513
+
514
+
After stopping your node, proceed to delete the existing XDC directory to prepare for the snapshot data
515
+
516
+

517
+
518
+
After deleting the XDC folder, you can now proceed to download and apply the latest snapshot.
519
+
520
+
To download the XDC Network Mainnet snapshot, use the appropriate command based on the type of node you’re setting up:
521
+
522
+
-**For a Full Node (latest state only):**https://download.xinfin.network/xdcchain.tar
523
+
524
+
-**For an Archive Node (complete history):**http://downloads.xinfin.network/xdcchain_archive.tar
525
+
526
+
**Note: Snapshots are updated approximately every 20 days.**
527
+
528
+

529
+
530
+
Once the xdc.tar file has been downloaded, extract the snapshot by running the following command:
531
+
532
+
```
533
+
tar -xvzf xdc.tar
534
+
```
535
+
536
+
This will unpack the archive and create the XDC directory containing the necessary blockchain data.
537
+
538
+

539
+
540
+
### Once the XDC folder has been extracted, navigate into it and perform the following cleanup steps:
0 commit comments