Blockchain
Anchor the issuer's DID on blockchain
Creates a blockchain transaction to register the issuer's DID
post
Anchors the issuer's DID on the blockchain
Responses
200
Success
application/json
500
Server Error
application/json
post
POST /v1/blockchain/dids HTTP/1.1
Host: api
Accept: */*
{
"did": "did:empe:0x1234567890abcdef1234567890abcdef12345678"
}
Verifies if a DID exists on the blockchain
Path parameters
didstringRequired
The DID to verify
Responses
200
Success
application/json
404
Not Found
application/json
500
Server Error
application/json
get
GET /v1/blockchain/dids/{did} HTTP/1.1
Host: api
Accept: */*
{
"did": {
"id": "text",
"context": [
"text"
],
"controller": [
"text"
],
"verificationMethod": [
{
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
],
"authentication": [
{
"referenceId": "text",
"embeddedMethod": {
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
}
],
"assertionMethod": [
{
"referenceId": "text",
"embeddedMethod": {
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
}
],
"keyAgreement": [
{
"referenceId": "text",
"embeddedMethod": {
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
}
],
"capabilityInvocation": [
{
"referenceId": "text",
"embeddedMethod": {
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
}
],
"capabilityDelegation": [
{
"referenceId": "text",
"embeddedMethod": {
"id": "text",
"type": "text",
"controller": "text",
"publicKeyBase58": "text",
"publicKeyMultibase": "text",
"publicKeyJwk": {
"kty": "text",
"crv": "text",
"x": "text",
"y": "text"
}
}
}
],
"service": [
{
"id": "text",
"type": "text",
"serviceEndpoint": [
"text"
]
}
],
"alsoKnownAs": [
"text"
]
}
}
Updates the revocation list on the blockchain based on the current status of the credentials It fetches all credentials from the database, checks their status, and updates the revocation list accordingly.
Authorizations
Path parameters
idnumber · doubleRequired
The ID of the revocation list to update
Responses
200
OK
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
post
POST /v1/blockchain/revocations/{id} HTTP/1.1
Host: api
x-client-secret: YOUR_API_KEY
Accept: */*
No content