Skip to content

Run Node Interactively

While running a node interactively is not recommended for production, it is a great way to get started with X1. Continue to Running Node Service for a production ready solution.

See the common command line flags for each node type:

shell
x1 --testnet
shell
x1 --testnet \
   --http \
   --http.port 8545 \
   --http.addr 0.0.0.0 \
   --http.vhosts "*" \
   --http.corsdomain "*" \
   --ws \
   --ws.addr 0.0.0.0 \
   --ws.port 8546 \
   --ws.origins "*"
shell
x1 --testnet \
   --syncmode full \
   --gcmode archive
shell
x1 --testnet \
   --validator.id YOUR_VALIDATOR_ID \
   --validator.pubkey YOUR_VALIDATOR_PUBKEY \
   --validator.password ~/.x1/.password

See a full list of command line flags:

shell
x1 --help