Join Mainnet
Quickstart
Install atomd
Follow the installation prerequisites document to install the ATOM Network Node binary atomd.
Configuration
Configure your node with a moniker
Download compressed genesis state
Put the
genesis.json
file in the corresponding location
Copy
Start ATOM Network Node
Copy
To save those seeds to your settings, put the comma-separated list format seeds in ~/.ionc/config/config.toml
in the p2p section under seeds.
Manual Setup
These instructions are for setting up a brand new full node from scratch.
Ensure the latest atom version installed. First, initialize the node.
Copy
Note Monikers can contain only ASCII characters. Using Unicode characters is not supported and renders your node unreachable.
By default, the init
command creates your ~/.
atom directory with subfolders config
and data
. In the config
directory, the most important files for configuration are app.toml
and config.toml
.
You can edit the moniker
in the ~/.
atom /config/config.toml
file:
Copy
For optimized node performance, edit the ~/.
atom /config/app.toml
file to enable the anti-spam mechanism and reject incoming transactions with less than the minimum gas prices:
Copy
Your full node has been initialized!
Genesis & Seeds
Copy the Genesis File
Fetch the mainnet's genesis.json
file into atomd's config directory.
Copy
If you want to connect to the public testnet instead, click here
To verify the correctness of the configuration run:
Copy
Add Seed Nodes
Your node needs to know how to find peers. You'll need to add healthy seed nodes to $HOME/.
atom/config/config.toml
. The launch
(opens in a new tab) repo contains links to some seed nodes.
Run a Full Node
Start the full node with this command:
Copy
Check that everything is running smoothly:
Copy
View the status of the network with the atom Explorer(opens in a new tab).
Verify Mainnet
Help prevent a catastrophe by running invariants on each block on your full node. In essence, by running invariants, you ensure that the state of mainnet is the correct expected state. One vital invariant check is that no atom are being created or destroyed outside of the expected protocol, however, there are many other invariant checks each unique to their respective module. Because invariant checks are computationally expensive, they are not enabled by default. To run a node with these checks, start your node with the assert-invariants-blockly flag:
Copy
If an invariant is broken on your node, your node will panic and prompt you to send a transaction which will halt mainnet. For example, the provided message may look like:
Copy
When submitting an invariant-broken transaction, transaction fee tokens are not deducted as the blockchain will halt (invariant-broken transactions are free transactions).
Enable the REST API
By default, the REST API is disabled. To enable the REST API, edit the ~/.
ionic/config/app.toml
file, and set enable
to true
in the [api]
section.
Copy
Optionally, you can activate swagger by setting swagger
to true
or changing the port of the REST API in the parameter address
. After restarting your application, you can access the REST API on YOURNODEIP:1317
.
GRPC Configuration
By default, gRPC is enabled on port 9090
. In the ~/.
ionic/config/app.toml
file, you can make changes in the gRPC section. To disable the gRPC endpoint, set enable
to false
. To change the port, use the address
parameter.
Copy
Background Process
To run the node in a background process with automatic restarts, you can use a service manager like systemd
. To set this up, run the following:
Copy
If you're using Cosmovisor, you want to add
Copy
after the LimitNOFILE
line and replace $(which
ionicd)
with $(which cosmovisor)
.
Then setup the daemon
Copy
We can then start the process and confirm that it is running
Copy
Export State
IONIC Network can dump the entire application state into a JSON file. This application state dump is useful for manual analysis and can also be used as the genesis file of a new network.
Export state with:
Copy
You can also export state from a particular height (at the end of processing the block of that height):
Copy
If you plan to start a new network from the exported state, export with the --for-zero-height
flag:
Copy
Pruning of State
There are four strategies for pruning state. These strategies apply only to state and do not apply to block storage. To set pruning, adjust the pruning
parameter in the ~/.
ionic/config/app.toml
file. The following pruning state settings are available:
everything
: Prune all saved states other than the current state.nothing
: Save all states and delete nothing.default
: Save the last 100 states and the state of every 10,000th block.custom
: Specify pruning settings with thepruning-keep-recent
,pruning-keep-every
, andpruning-interval
parameters.
By default, every node is in default
mode which is the recommended setting for most environments. If you want to change your node pruning strategy, you must do so when the node is initialized. Passing a flag when starting ionic will always override settings in the app.toml
file, if you would like to change your node to the everything
mode then you can pass the ---pruning everything
flag when you call ionic start
.
Note: When you are pruning state you will not be able to query the heights that are not in your store.
Last updated