DID

Agent Server REST API

did

POST http://dev.whitehat.co.kr/agent/v1/did

API that creates DID

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required token for searching the Agent API (issuing console)

Request Body

Name
Type
Description

did

string

DID to create

keyId1

string

key id 1

keyId2

string

key id 2

pubKey1

string

public key (active)

pubKey2

string

public key (owner)

{
  "code": 200,
  "message": "Success",
  "data": {
    "id": "25C2BA04032347B2CB5B3EF132DF92DAD87181039A32B6FEB541995A2F4F483D",
    "block_num": 1359759
  }
}

Request Parameter example (JSON)

{
  "did": "testid1234",
  "keyId1": "key1",
  "keyId2": "key2",
  "pubKey1": "EOS7JV7UsMZLdbcgBVUKXXyRVu6Mu3THbPAbMjQ77tT54J7hBFYA5",
  "pubKey2": "EOS7JV7UsMZLdbcgBVUKXXyRVu6Mu3THbPAbMjQ77tT54J7hBFYA5"
}

Last updated