did-sdk-dev
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

DID-SDK

install

yarn add did-sdk

SANClient error

  • ok
{
  code: 0,
  message: 'ok',
  content: { issuers: [ [Object] ] },
  details: ''
}

code is 0, message is 'ok', content is the result.

  • error
{
  code: -10001,
  message: '',
  content: '',
  details: 'did invalid'
}

code not 0, message is a brief description of error, details is the detailed description of error.

SANClient op

example

const SANClient = require("./did-sdk/index");
 
const client = new SANClient();
var response = await client.did.create();
console.log(response);

/did-sdk-dev/

    Package Sidebar

    Install

    npm i did-sdk-dev

    Weekly Downloads

    1

    Version

    0.2.0

    License

    ISC

    Unpacked Size

    135 kB

    Total Files

    60

    Last publish

    Collaborators

    • sandmanhome