JAZ Chain
  • Guide
    • Products
    • Network
      • Endpoints
      • Metamask
      • Faucet
    • Glossary
    • Node Setup
      • Requirements
      • Installation
        • Using Command
        • Using Docker
      • Rotate session keys
      • Set session keys
      • Bind unique-node-nft
      • Claim Rewards
    • Run a tracing node
      • Run a Tracing Node
      • Additional Flags
      • Using a tracing Node
  • Build
    • Ethereum API
      • Libiaries
      • Dev Environments
      • Debug && Trace
        • Debug
        • Txpool
          • Trace Module
      • Gas
    • Substrate API
Powered by GitBook
On this page
  1. Guide
  2. Node Setup
  3. Installation

Using Docker

PreviousUsing CommandNextRotate session keys

Last updated 2 years ago

Requirements

Install

Synchronize Chain Data

Open terminal 1:

docker run -p 30333:30333 -p 9933:9933 -p 9944:9944 -v jaz-data:/data \
jaznetwork/jaz-node:artio \
--base-path=/data \
--pruning=archive  \
--rpc-methods=unsafe \
--unsafe-ws-external \
--unsafe-rpc-external

Open another terminal 2:

curl -X POST -H "Content-type: application/json"  http://127.0.0.1:9933 -d '
{
  "method": "author_rotateKeys",
  "jsonrpc": "2.0",
  "id": 1,
  "params": []
}
'

After completing this part, please close terminal 1 !

Execute the following command in terminal 2 :

docker run -d --restart=always --name="jaz-node" -v "jaz-data:/data" jaznetwork/jaz-node:artio --base-path=/data --validator

Print node logs

docker logs -f jaz-node

Docker