Skip to content

Run Autonity from a binary

Get the Autonity binary

You can run the Autonity Go Client binary directly on your host OS (i.e. not within a docker container)

  • Get the binary: go to the AGC v0.7.1 github release here, and download the file autonity-linux-amd64-0.7.1.tar.gz under Assets.

  • Unpack the tar file from your Downloads folder:

    tar -xzf autonity-linux-amd64-0.7.1.tar.gz
    

  • Copy the binary to /usr/local/bin, so it can be accessed anywhere (optional):

    sudo cp -r autonity /usr/local/bin/autonity
    

  • You can now run Autonity localy simply with the command autonity. Confirm you have the right version by running:

    autonity version
    

  • You should expect the following output, even though its v0.7.1:

Autonity
Version: 0.7.0

Run a node

To run a node that can join the network, Autonity must be started with the correct genesis and given the correct arguments. Do this with the following commands:

!!!note
     Bakerloo Genesis file: [download][2]
  • Start Autonity with the correct arguments, updating the path to the genesis file (first argument):

    autonity \
    --genesis path/to/genesis \
    --cache 1024 \
    --rpc \
    --rpcapi eth,web3,net,tendermint,txpool,debug,admin \
    --rpcvhosts "*" \
    --rpcaddr 0.0.0.0 \
    --rpccorsdomain "*" \
    --ws \
    --wsapi tendermint,console,eth,web3,admin,debug,miner,personal,txpool,net \
    --wsorigins "*" \
    --wsaddr 0.0.0.0 \
    --metrics \
    --pprof \
    --pprofaddr 0.0.0.0 \
    --networkid 444900 \
    --nousb \
    --debug \
    --verbosity 3