SETTING EWAI-SERVER TO USE THE VOLTA TEST NET
To even do local dev with EWAI-SERVER, you will probably want to utilize the test-net provided by EnergyWeb. This is due to the fact that EWAI integrates with and utilizes other services (such as Switchboard, EWNS, etc) which re all provided on the test-net, and it's not really practical to clone and set them all up on your local dev machine (e.g., in ganache). You could do that if you really wanted to but it would be quite non-trivial.
Note
The information below can help you set up the proper [.env config file settings](config.md).
EWAI-SERVER in development mode uses the .env file to set all necessary configuration variables, in order to use Volta network please follow these steps:
Attention
Make sure you completed the [build steps](build.md) in order to install and build the EWAI-SERVER repo.
Edit your .env and set the following Volta related settings:
- EWAI_ASSET_PUBLISH_ROLE_ENROL_URL="https://volta-switchboard.energyweb.org/#/enrol?app=${EWAI_INSTANCE_NAME}&roleName=publisher"
- EWAI_SWITCHBOARD_URL="https://volta-switchboard.energyweb.org"
- EWAI_EWC_PRIVATE_KEY=a private key with funded Volta account (see notes below for instructions)
- EWAI_EWC_RPC_URL="https://volta-rpc.energyweb.org"
- EWAI_EWC_CHAIN_ID=73799
- EWAI_EWC_IAM_CACHE_URL="https://volta-identitycache.energyweb.org/"
Note
You can use sites like https://vanity-eth.tk/ in order to generate a private / public key pair.
Note
Volta tokens can be requested using EWF Volta Faucet available at https://voltafaucet.energyweb.org/