Blockchain

Get the issuer's blockchain address

get

Retrieves the blockchain address used by the issuer

Responses
200
Success
application/json
get
GET /v1/blockchain/address HTTP/1.1
Host: api
Accept: */*
{
  "address": "0x1234567890abcdef1234567890abcdef12345678"
}

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
post
POST /v1/blockchain/dids HTTP/1.1
Host: api
Accept: */*
{
  "did": "did:empe:0x1234567890abcdef1234567890abcdef12345678"
}

Verify a DID on the blockchain Retrieves and validates a DID document from the blockchain

get

Verifies if a DID exists on the blockchain

Path parameters
didstringRequired

The DID to verify

Responses
200
Success
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"
    ]
  }
}

Update the revocation list on the blockchain

post

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
post
POST /v1/blockchain/revocations/{id} HTTP/1.1
Host: api
x-client-secret: YOUR_API_KEY
Accept: */*

No content