Get your DID wallet

Use the API to get the DID of your wallet

Now, create your first request. You will request to get the information from the wallet you created previously via the UI

  • Select your collection and right-click. In the list, select add request

The right panel displays a new interface

  • Replace the name « New Request » with a relevant name regarding the request you are creating. For example « wallet »

  • Keep GET because you are requesting data from the service

  • In the URL field, replace by {{Base_URL}}/wallets

When you send the request, {{Base_URL}} will be automatically replaced by the value you have defined previously in the Environment

  • Save the request

  • Click on Send button

Here is the response from the service:

[
    {
        "id": "33b397c3-a449-4ff2-994e-406200c89c4d",
        "dids": [
            "H9R4MFoMC5oxttYgohABTV"
        ],
        "label": null,
        "type": "individual",
        "validated": false
    }
]

In our example, the DID of our wallet is H9R4MFoMC5oxttYgohABTV

  • In the environment you set in the previous section "create your test environment", add a new variable and call it walletDIDholder. Copy the DID your got in the "initial value" columns.

Add automatically the walletDID variable in the header of all your requests:

to simplify the edition of your requests, we suggest to create a Pre-request Script to add a variable in the collection-level header.

  • select your collection (Collection Archipels Connect Holder), and click on the Pre-request Script tab

  • copy this script:

    pm.request.headers.add({key: 'wallet', value: '{{walletDIDholder}}'})
  • Save the configuration

Dernière mise à jour

Cet article vous a-t-il été utile ?