Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Eth1 Shard Demo

Prerequisites

Run Eth1 Shard Demo

git clone git@github.com:txrx-research/eth1-shard-demo.git
cd eth1-shard-demo

docker-compose up

Setup your local wallet

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

Demo genesis.json

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"
}

Demonstration of value transfer

Demo

References

About

Docker setup with Eth1 Shard demo

Resources

License

Releases

No releases published

Packages

No packages published