Run a node
Start the node
Use this command to run an Iron Fish node in your terminal.
ironfish start
> ironfish start
:::::::::: ::::::::::::::::: :::::::::::: ::::::::::::::::::: ::::::::::::: ::::::::::::::::::::: :::::::::::::: :::::::::::::::::::::::: ::::::::::::: :::::::::: ::::::::: ::::::::::::::::::::: :::::::::: ::::::::::::::::::::: ::::::::: ::::::::::::: :::::::::: ::::::::: :::::::::::::: :::::::::::::::::::::::: ::::::::::::: ::::::::::::::::::::: :::::::::::: ::::::::::::::::::: :::::::::: ::::::::::::::::
Peer Identity ms1kEwERcvP4bzn8TtcmffSBHrlQfn9izdW2KlmLXiA= Peer Version ironfish-sdk/2/cli Port 9033 Bootstrap test.bn1.ironfish.network Serving RPC on IPC /Users/username/.ironfish/ironfish.ipc ################################################################# # Thank you for installing the Iron Fish Node. # # To help improve Ironfish, opt in to collecting telemetry # # by setting telemetry=true in your configuration file # #################################################################
New default account created: default Account's public address: ec7d8422f70b5449a5aabb18c9507b1875b6ec49b8ada1ba991ca09900c1c3b1c7b282a7b93866be02109d
Note: If you close the terminal, the Iron Fish node will stop.
The node will now sync your local chain with the network. It might take a while for the full sync to be complete. But you can still use the node in the meantime.
Downloading a chain snapshot
To sync your local chain with the network more quickly you can download a snapshot of the chain database.
ironfish chain:download
Note: You must close your node before running chain:download
.
Advanced Options
Using a different directory
By default, the node stores its data in the ~/.ironfish
directory (see node data dir).
You can use a different directory for the database and configuration files by using the --datadir
flag.
E.g.
ironfish start --datadir=~/myCustomFolder
Using a different bootstrap node
By default, your node will connect to the official Iron Fish bootstrap nodes.
If you are developing and want to use a different bootstrap node, you can make the node connect to a different address with the --bootstrap
flag.
Do not use a production bootstrap node that isn't officially endorsed by Iron Fish, you might end up on a malicious network.
E.g.
ironfish start --bootstrap=localhost:9031
Using a different port
By default, Iron Fish runs on port 9033. If you wish to use a different port, you can use the --port
flag.
E.g.
ironfish start --port=9045