Get the list of valid attestations

before to be able to show the presentation, you need to know if you have the requested attestation end if it's still valid

From the Holder wallet

  • Create a new request with the Method GET and the value {{base_URL}}/presentations/{id}/valid-attestation

  • Rename this request "get valid attestation"

  • Replace {id} with the presentationId you have copied before

  • Request should look like this {{base_URL]]/presentations/482ba620-e406-4af2-b4e4-368c1a8db0c4/valid-attestation

  • Save the request and click SEND

Here the response

[
    {
        "id": "8ff4194a-5816-4a8f-973e-f00d170836e3",
        "issuerId": "1uYeHCcPjzRVGFQcFPMsg:3:CL:16776:default",
        "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0",
        "attributes": {
            "__source": "YourName",
            "type": "T-shirt"
            "size": "M"
            "price": "10€"
        },
        "issuanceDate": "2024-03-14T23:15:55.381Z"
    },
    {
        "id": "2da2dfe8-43c5-48f0-ac8c-491a6e540aa7",
        "issuerId": "1uYeHCcPjzRVGFQcFPMsg:3:CL:16776:default",
        "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0",
        "attributes": {
            "__source": "YourName",
            "type": "Hat"
            "size": "XS"
            "price": "5€"
        },
        "issuanceDate": "2024-03-14T23:15:55.381Z"
    }
]
  • Copy the ID of one of the attestations. Here the ID is 8ff4194a-5816-4a8f-973e-f00d170836e3 You will use it at the next step

Dernière mise à jour