Update Aug 29th 2019: Hyperledger Composer has been deprecated. Please see the README for more information.

Hyperledger Composer Card Import

Composer Card Import

Imports a card which has already been created into your local wallet.

composer card import --file admin.card --card admin@tutorial-network

Syntax

Options:
  --help         Show help  [boolean]
  -v, --version  Show version number  [boolean]
  --file, -f     The card file name  [string] [required]
  --card, -c     The name to identify the imported card  [string]

Javascript API Example

const CardImport = require('composer-cli').Card.Import;

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

CardImport.handler(options);