📃
Finema Documentation
  • Introduction to SSI
  • IDIN Platform
  • IDIN Key Management
  • API Tutorials
    • DID API
      • DID Registration
      • Key Series Addition
      • Key Series Revocation
      • Resetter Registration
      • Resetter Revocation
      • Resetter Approval
      • GET DID Nonce
    • VC API
      • VC Registration
      • VC Revocation
      • GET VC Verification Key
Powered by GitBook
On this page

Was this helpful?

  1. API Tutorials
  2. DID API

GET DID Nonce

With the exception of DID registration (did_register), each HTTP request to the IDIN server must contain a request nonce ("nonce"). A nonce is bound to a DID address and starts at one for the first HTTP request after the DID registration. The DID nonce then increases by one for every request, and as a result it counts to the total number of requests that the DID has made.

The current nonce of a DID (<did_address>) can be obtained with a GET request.

If the input nonce ("nonce") in a HTTP request does not match the current nonce of the given DID, the request will be rejected by the IDIN server.

GET https://test-network.finema.co/did/<did_address>/nonce

{
    "did_address": "did:idin:9cd19d4cbab9ca1d6f4c6a4b9117fb8904f250b47307cf4f484424f44e0c8370",
    "nonce": 17
}
{
    "errors": [
        {
           "status": 422,
            "title": "Invalid Attribute",
            "detail": "the server cannot process the request",
        }
    ]
}
PreviousResetter ApprovalNextVC API

Last updated 4 years ago

Was this helpful?