All pages
Powered by GitBook
1 of 3

Loading...

Loading...

Loading...

Building and returning

BUILDING AND RETURNING A TRUSTCHAIN

Returns a trustchain for a VP document

GET /trustchains/{hash}

Builds and returns a trustchain, from the VP to the root VC document. Only users with the Auditor role are allowed to make the request.

Path Parameters

Name
Type
Description

hash*

String

Hash or ID of a VP document

{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustChains'
}
{
    // Response
}
{
    // Response
}
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}

Trustchain APIs

Requesting

REQUESTS ALL VP DOCUMENTS

Returns a list of all VP documents

GET /trustchains

Requests all VP documents. Only users with the Auditor role are allowed to make the request

{
    content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VerifiablePresentation'
}
{
    // Response
}
{
    // Response
}
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}