Skip to content

Testnet

You may want to test the node in a safe environment before running a mainnet node. The testnet configuration lets you experiment and run tests without affecting the mainnet.

Installation

  • Automatic installation

    You can use the installation script to automatically install the node for testnet:

    sh
    sudo bash -c "$(wget -O - https://adamant.im/install_node.sh)" -O -b master -n testnet -j 24

    This will create a test/config.json file, which you can edit as needed.

  • Manual setup

    To manually set up and run a local testnet node, copy the default config file and edit your copy:

    sh
    cp test/config.default.json test/config.json

Running ADM testnet node

To start the testnet node:

sh
npm run start:testnet

You can also override individual configuration values at startup without editing test/config.json. For example, to enable public API access:

sh
npm run start:testnet -- --config-set api.access.public=true

See Configuration Overrides for the full override syntax.

Running tests

Refer to CONTRIBUTING.md.