- Install Docker Compose
git clone [email protected]:txrx-research/eth1-shard-demo.git
cd eth1-shard-demo
docker-compose up
You may connect your wallet (e.g. Metamask) to the Demo Network.
When docker compose is up there is a gateway node mapped on the local host with JSON-RPC endpoint accessible at http://localhost:8545
as usual. To send transactions successfully you will have to set chainId = 20202
for the network configuration.
Once the network is set up, use the following private key to redeem an enormous amout of premined ETH dedicated for your needs:
0x0000000000000000000000000000000000000000000000000000000000000001
Here is the full genesis.json file used to bootstrap Eth1 nodes:
{
"config": {
"chainId": 20202,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0
},
"alloc": {
"0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf": {
"balance": "1000000000000000000000000000"
}
},
"coinbase": "0x0000000000000000000000000000000000000000",
"difficulty": "0x20000",
"extraData": "",
"gasLimit": "0x2fefd8",
"nonce": "0x000000000020202",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": "0x00"
}
- This setup is based on the Eth1 Shard Simulation:
- Catalyst (eth1-engine):
- Eth2-client: