This container will be used to setup RPC server and this RPC server will be used to run tests.
$ docker-compose up -d
$ docker exec -it <container id> bash
All following commands will be run from the launched container
There are two ways of doing that now:
- Init private node using provided genesis.json file
- Start Geth with
--dev
flag
$ geth --datadir ./data/main init genesis.json
$ sh ./runrpc-custom.sh
$ sh ./runrpc-dev.sh
There will be one account created and pre-funded if you are using dev mode.
In order to create additional accounts from geth console you can use helper.js
file
> loadScript('helper.js');
> addAccount();