No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
getenv.js
package.json

README.md

Kaleido Main-net Reporter

This is a sample program that shows how a user can retrieve the state reports saved to the main-net.

Dependencies:

  • Node.js
  • npm

Building:

npm install

Usage:

node getenv.js --network <rinkeby-net-http-endpoint> --envId <envId> --latest <count>

network is the main-net or rinkeby net http endpoint (must match the network you chose when provisioning the kaleido environment). If you don't have an endpoint to the main-net handy, you can use infura to get one.

envId is the Kaleido Environment ID (for an environment that has the main-net relay option selected when it was created)

latest allows you to control the total number of reports to retrieve (defaults to one)

short-form usage: node getenv.js --network <http-endpoint> <envId>

Report Format

Each report contains the following data:

nodeIdHash: 0x...
blockNumber: ...
blockHash: 0x...
checksum: 0x...
signature: { v: ..., r: 0x..., s: 0x...}

Please report problems to support@kaleido.io.

Note

This is pre-release software and should be considered alpha code.