cc_call

command
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

Blockchain Info

Example allows to get information about joined channels and channel's ledger.

Required environment variables

  • MSP_ID - MSP identifier
  • CONFIG_PATH - path to configuration file of SDK (eg. config.yaml)
  • CERT_PATH - path to certificate file of identity (eg. signcerts/cert.pem)
  • KEY_PATH - path to private key of identity (eg. keystore/your_pk)

Usage

Run with environment variables described above:

go run main.go

Example output:

Fetching info about channel: channel1
Block length: 1, last block: hSUcm1BXeBFUDkYoktP2snFh2sdMtrO7Wn4e381Dq4Y=, prev block: 
Fetching info about channel: channel2
Block length: 2, last block: NJdmpdTjGZG3NDfJKWD1qUsNWs2DI/eQnCRBRrioVKo=, prev block: 6vm07LCMvpIjJ9OZ54WJZfZNKZ21w2KbSkEVExjvfN4=
Fetching info about channel: channel3
Block length: 1, last block: eX8As3kxjTbep4QMCGuzj/wrZQQhNlMNTS+zGOBd+lk=, prev block:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL