Get an address

You can retrieve the address for a specific asset on a DLT network using the 'Get an address' endpoint. This address is derived when you generate a key. The asset's address is associated with a specific hdAccountId and managed under one of the supported service providers (AWS KMS or Fireblocks).


Prerequisites

Create an hdAccountId Create an hdAccountId under one of the service providers if you have not already done so.

Generate a key Generate a private key for your asset under your hdAccountId if you have not already done so

Call the endpoint

To retrieve the address for your asset on a DLT network, you can use the endpoint:

https://hook.eu2.make.com/mtn0e6wpoh83mnlahzq0ulexwk1gepr3

To use this endpoint you need to pass in your clientId, service provider and hdAccountId as well as the location information of the DLT network the asset is under:

curl --request POST \
     --url https://https://hook.eu2.make.com/mtn0e6wpoh83mnlahzq0ulexwk1gepr3 \
     --header 'Authorization: Bearer token' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "clientId": "6rigmpr3qtji7dbfolrsbdh4ic",
  "serviceProvider": {
      "name": "fireblocks",
      "hdAccountId": 107
  },
  "location": {
      "technology": "ethereum",
      "network": "ethereum sepolia testnet"
  }
}
'

If the request is successful you will receive a response with the address of your asset:

{
  "address": "0x6F37b996AF773a38ADE9525f1396ba09Ae0a3c84"
}