Skip to content

Akachain/akc-node-sdk-external-cc

Repository files navigation

Akachain Node SDK for external chaincode

Dapp node sdk with metrics configuration

Prerequisites

npm install fabric-ca-client

Installation

  1. Before installing, download and install Node.js.

  2. Grant access permission for registry https://npm.pkg.github.com/

    Create file .npmrc

    // Linux/MacOS command
    touch .npmrc

    Config registry to install akaChain SDK

    // Linux/MacOS command
    echo "registry=https://npm.pkg.github.com/Akachain" >> .npmrc

    Get your personal access token on github: Access to gibhub, choose settings at right-top of page. Click on Developer settings, Personal access tokens then generate your token. Copy it to replace your_token in the following command

    // Linux/MacOS command
    echo "//npm.pkg.github.com/:_authToken=your_token" >> .npmrc
  3. Installation is done using the npm install command:

    npm install @akachain/akc-node-sdk-external-cc

How to use

// import sdk
const akcSdk = require('@akachain/akc-node-sdk-external-cc');

...
// invoke example
const invokeResult = await akcSdk.invoke(channelName,targets,chaincodeId,funcName, args, orgname, username, artifactFolder);

Functions

Function Parameters Note
invoke peerNames, channelName, chaincodeName, fcn, args, orgName, userName
query peerNames, channelName, chaincodeName, fcn, args, orgName, userName

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published