Hyperledger Composer Network Ping CLI

Hyperledger Composer Network Ping


The composer network ping utility is used to verify the connection to a business network deployed to a Hyperledger Fabric. Note that ping also returns the participant information for the identity that was used to connect to the network, if an identity has been issued for the participant.

composer network ping --card admin@tutorial-network

Options

Options:
  --help         Show help  [boolean]
  -v, --version  Show version number  [boolean]
  --card, -c     The cardname to use to ping the network  [string]

Example Output

composer network ping --card admin@tutorial-network
The connection to the network was successfully tested: tutorial-network
    version: 0.15.0-20171108090428
    participant: org.hyperledger.composer.system.NetworkAdmin#admin

Command succeeded

Javascript API Example

const NetworkPing = require('composer-cli').Network.Ping;

let options = {
  card: 'admin@tutorial-network'
};

NetworkPing.handler(options);