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

0.1.11 • 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/

    Package Sidebar

    Install

    npm i did-sdk

    Weekly Downloads

    1

    Version

    0.1.11

    License

    ISC

    Unpacked Size

    139 kB

    Total Files

    60

    Last publish

    Collaborators

    • baasze