truechain / truechain-engineering-code

Go implementation of TrueChain
GNU Lesser General Public License v3.0
99 stars 81 forks source link

TrueChain Engineering Code

TrueChain is a truly fast, permissionless, secure and scalable public blockchain platform.

Connect TrueChain

Chain ID 19330

RPC https://rpc.truechain.network

Building the source

Building getrue requires both a Go (version 1.14 or later) and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

make getrue

or, to build the full suite of utilities:

make all

The execuable command getrue will be found in the cmd directory.

Running getrue

Going through all the possible command line flags is out of scope here (please consult our CLI Wiki page), also you can quickly run your own getrue instance with a few common parameter combos.

Running on the Truechain main network

$ getrue console

This command will:

Running on the Truechain test network

To test your contracts, you can join the test network with your node.

$ getrue --testnet console

The console subcommand has the exact same meaning as above and they are equally useful on the testnet too. Please see above for their explanations if you've skipped here.

Specifying the --testnet flag, however, will reconfigure your Geth instance a bit:

Configuration

As an alternative to passing the numerous flags to the getrue binary, you can also pass a configuration file via:

$ getrue --config /path/to/your_config.toml

To get an idea how the file should look like you can use the dumpconfig subcommand to export your existing configuration:

$ getrue --your-favourite-flags dumpconfig

Running on the Truechain singlenode(private) network

To start a getrue instance for single node, run it with these flags:

$ getrue --singlenode  console

Specifying the --singlenode flag, however, will reconfigure your Geth instance a bit:

Which will start sending transactions periodly to this node and mining fruits and snail blocks.