Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

chainx-org/SherpaX

Repository files navigation

Singleton SherpaX

Based on Substrate framework, Singleton SherpaX Chain is a blockchain adopting aura + grandpa consensus algorithm.

How to use/test locally

1. Supported dependencies

It should at least work until the following commits

  • Substrate: polkadot-v0.9.18 @ fc3fd073d3a0acf9933c3994b660ebd7b5833f65
  • ChainX frontier: polkadot-v0.9.18 @ eb579d4dda77724be438bf090596b347ca6a5a37

2. Local Test

2.1 quick start

 ./target/release/sherpax --dev --tmp --rpc-port 8546 --rpc-cors=all -levm=trace

2.2 full start

2.2.1 alice

./target/release/sherpax \
    --chain=local \
    -d ./data/alice \
    --alice \
    --ws-port 9944 \
    --port 30331

2.2.2 bob

./target/release/sherpax \
    --chain=local \
    -d ./data/bob \
    --bob \
    --ws-port 9945 \
    --port 30332

2.2.3 full

 ./target/release/sherpax \
    --chain=local \
    -d ./data/sherpax-full \
    --execution=wasm \
    --state-cache-size=0 \
    --prometheus-external \
    --pruning=archive \
    --rpc-cors=all \
    --rpc-external \
    --rpc-port 8546 \
    --ws-external \
    --ws-port 9977 \
    --ws-max-connections 10000 \
    --port 30333 \
    -levm=trace

3. Evm support

3.1 metamask (for account)

Network Name: sherpax
New RPC URL: http://127.0.0.1:8546
Chain ID: 1506
Currency Symbol: KSX
Block Explorer URL:

Refer Connect MetaMask to Moonbase Alpha

3.2 Remix (for contract)

Refer Interacting with Moonbeam Using Remix

3.3 Ethereum apis

3.4 frontier account

How does frontier manage the substrate account and ethereum account

4. Assets Bridge

Refer AssetsBridge

5. SherpaX Mainnet

shrepax mainnet chainspec(76MB, tar.gz)

tar zxvf ./node/res/sherpax-raw.json.tar.gz -C ./node/res/

or sherpax_mainnet_chainspec(276MB)

./target/release/sherpax --chain=./node/res/sherpax-raw.json --tmp