Skip to content

txrx-research/eth1-shard-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published