Skip to content

TransX mainnet blockchain based on Substrate.

License

Apache-2.0, GPL-3.0 licenses found

Licenses found

Apache-2.0
LICENSE-APACHE2
GPL-3.0
LICENSE-GPL3
Notifications You must be signed in to change notification settings

holdtree/TransX

 
 

Repository files navigation

Transx · GitHub license GitLab Status PRs Welcome

Transx

Introduction

  • Digital currency aggregation payment platform.
  • TransX leads the aggregate payment of digital currencies.
  • TransX provides great DCEP supporting services.

Building

  • Install Rust curl https://sh.rustup.rs -sSf | sh

  • Install all the required dependencies with a single command. curl https://getsubstrate.io -sSf | bash -s -- --fast

  • Wasm Compilation

    rustup install nightly-2020-03-09
    rustup default nightly-2020-03-09-x86_64-unknown-linux-gnu
    rustup target add wasm32-unknown-unknown --toolchain nightly-2020-03-09-x86_64-unknown-linux-gnu
    
  • Clone git clone https://github.com/TransactionX/TransX.git

    Ensure your node run stably, skip to releases and download Source code in the lastest release.

  • Compile the project cargo build --release

NetWork

  • Connect to sword(test network).

    ./target/release/transx --chain=sword.json

    Up to now, we only start the testnet.

  • Run as dev. Remove the db ./target/release/transx purge-chain --dev Start a development chain ./target/release/transx --dev

  • Run as local If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet with two validator nodes for Alice and Bob, who are the initial authorities of the genesis chain that have been endowed with testnet units.

    You'll need two terminal windows open.

    We'll start Alice's substrate node first on default TCP port 30333 with her chain database stored locally at /tmp/alice. The bootnode ID of her node is 12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp, which is generated from the --node-key value that we specify below:

    ./target/release/transx \
      --base-path /tmp/alice \
      --chain local \
      --alice \
      --node-key 0000000000000000000000000000000000000000000000000000000000000001
    

    In the second terminal, we'll start Bob's substrate node on a different TCP port of 30334, and with his chain database stored locally at /tmp/bob. We'll specify a value for the --bootnodes option that will connect his node to Alice's bootnode ID on TCP port 30333:

    ./target/release/transx \
      --base-path /tmp/bob \
      --chain local \
      --bob \
      --port 30334 \
      --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
    

    Additional CLI usage options are available and may be shown by running cargo run -- --help.

If you want to be a validation node, there is specific documentation about it.

Contributions & Code of Conduct

Please follow the contributions guidelines as outlined in docs/CONTRIBUTING.adoc. In all communications and contributions, this project follows the Contributor Covenant Code of Conduct.

Security

The security policy and procedures can be found in docs/SECURITY.md.

License

About

TransX mainnet blockchain based on Substrate.

Resources

License

Apache-2.0, GPL-3.0 licenses found

Licenses found

Apache-2.0
LICENSE-APACHE2
GPL-3.0
LICENSE-GPL3

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.0%
  • Shell 0.4%
  • WebAssembly 0.3%
  • JavaScript 0.2%
  • Python 0.1%
  • Dockerfile 0.0%