Detailed Windows Desktop Instructions

The following instructions detail how to set up a Taraxa lite node RPC node on a Windows desktop.

  1. Install Docker Desktop by following the installation guide.

    Download the Docker version for Windows.

    Windows Docker Download Screenshot

    Download either x86_64 or Arm version depending on your system. Most systems are x86_64.

    Windows Docker Download Screenshot

    Install Docker Desktop by double-clicking the downloaded file.

    Windows Docker Install Screenshot

    Windows Docker Install Screenshot

    Make sure to check the box to enable WSL2 integration.

    Windows Docker Install Screenshot

    Windows Docker Install Screenshot

    If requested after the installation restart your computer.

    Windows Docker Install Screenshot

    Accept the license agreement.

    Windows Docker License Screenshot

    Use the recommended settings (except you know better).

    Windows Docker Settings Screenshot

    Skip the registration step (except you want to register).

    Windows Docker Registration Screenshot

    Wait until Docker Desktop is started.

    Windows Docker Start Screenshot

    Verify that it says Docker Engine running in the bottom left corner.

    Windows Docker Running Screenshot

  2. Open a PowerShell window.

    Windows Install PowerShell Screenshot

  3. Install the Taraxa lite node:

     mkdir C:/mainnet
     cd C:/mainnet
     wget https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/taraxa_compose_mainnet/docker-compose.light.yml -O docker-compose.yml
    

    Windows Install Docker Screenshot

     docker compose up -d
    

    Windows Install Docker Screenshot

    Allow access if a security prompt appears.

    Windows Install Docker Screenshot

     docker compose logs -f -n 100 node
    

    Windows Install Docker Screenshot

    Press CTRL+C to exit the logs.

  4. Validate the RPC endpoint:

     curl -X POST http://localhost:7777 --data '{"jsonrpc":"2.0","method":"taraxa_getVersion","params":[],"id":1}'
    

    Windows Validate RPC Screenshot

  5. Install the latest database snapshot to speed up synchronization. Note that some commands may take a while to complete:

     docker compose down
     docker run --rm -it -v mainnet_data:/data alpine sh
     cd /data/db
     rm -r db state_db
     wget http://snapshots.cryptobauer.com/snapshot-litenode-latest.tar.gz
     tar xzf snapshot-litenode-latest.tar.gz
     rm snapshot-litenode-latest.tar.gz
     exit
    

    Windows Install Snapshot Screenshot

  6. Start the node and monitor synchronization:

     docker compose up -d
     docker compose logs -f -n 100 node
    

    Windows Start Node Screenshot

    Wait for the STATUS: GOOD. NODE SYNCED message. (Press CTRL+C to exit.)

    Windows Synced Node Screenshot

  7. Revalidate the RPC endpoint:

     curl -X POST http://localhost:7777 --data '{"jsonrpc":"2.0","method":"taraxa_getVersion","params":[],"id":1}'
    

    Cloud Instance Validate RPC Screenshot

  8. Optional: Test the RPC endpoint programmatically using the provided Javascript program. It requires Node.js to be installed.

     import { ethers } from 'ethers';
    
     async function printTaraxaVersion() {
         const rpcUrl = 'http://localhost7777';
         const provider = new ethers.JsonRpcProvider(rpcUrl);
    
         try {
             const version = await provider.send('taraxa_getVersion', []);
             console.log('Response from Taraxa RPC node:', version);
         } catch (error) {
             console.error('Error interacting with Taraxa RPC node:', error);
         }
     }
    
     printTaraxaVersion();
    

    Then run on your local laptop or desktop:

     npm install ethers
     node taraxa-rpc-test.js
    

    Cloud Instance Test Program Screenshot

Congratulations! Your Taraxa RPC node is now installed and ready to interact with the network and your applications.