Some utils to perform common tasks.
npm install
- Create a Service Account/Identity.
- Get a Network Profile
- Copy the network profile and pasxxte in
./config
- Replace properties:
client.credentialStore.path
andclient.credentialStore.cryptoStore.path
with./config
Go to .env
and replace the values with your environment:
# Your environment's IP and port
CA_ADDRESS=https://<ip>:<port>
# Where you store/output the keys
KEYSTORE=./config
# The network profile for your network
NETWORKPROFILE=./config/networkprofile.yaml
CHANNEL=public
USERNAME=testuser
Go to your Network's Node Env
Then call the enroll:
# The <organization-name> can be found in your network profile in `client.organization` or in the second image above in your Nodes Environment.
$ npm run enroll -- <username> <password> <organization-name>
You can now copy and save these values where you need them to connect to the network.
Be sure you first complete the user enrollment step (A.).
Call:
npm run invoke -- <chaincodename> init
More information on Forma DOCS.