Devnet is a feature similiar to Bitcoin's Regtest Mode that allows developers to run a local blockchain with a single Semux node for testing purpose.
To start a devnet, run:
./semux-cli.sh --network devnet
There is a default validator that allows you to forge blocks on Devnet:
- Public Key =
0x23a6049381fd2cfb0661d9de206613b83d53d7df
- Private Key =
0x302e020100300506032b657004220420acbd5f2cb2b6053f704376d12df99f2aa163d267a755c7f1d9fe55d2a2dc5405
To start forging blocks on Devnet, run:
./semux-cli.sh --importprivatekey 302e020100300506032b657004220420acbd5f2cb2b6053f704376d12df99f2aa163d267a755c7f1d9fe55d2a2dc5405
then specify 0x23a6049381fd2cfb0661d9de206613b83d53d7df
as your coinbase.
If you prefer using a public testing network, see Testnet.