did-sdk-dev
v0.2.0
Published
SAN did sdk
Downloads
3
Readme
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);