Get a public key
You can retrieve the public key for a specific asset on a DLT network using the 'Get a public key' endpoint. This public key is derived when you generate a key. The asset's public key is associated with a specific hdAccountId
and managed under one of the supported service providers (AWS KMS or Fireblocks).
Prerequisites
- Create an account and generate your application's API keys
Create an account on Quant Connect. Then, register your application to generate API keys to authorise your requests on Overledger APIs.
- Generate a Bearer Token You must generate an authentication token in order to use the Overledger APIs.
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 public key for your asset on a DLT network, you can use the endpoint:
https://hook.eu2.make.com/9c3mjjfimsbvr61vck0eqks4pdhxeayz
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/9c3mjjfimsbvr61vck0eqks4pdhxeayz \
--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 public key of your asset:
{
"publicKey": "046f2f9c4f4eda1d35c4784e630e65bad8150793083573178a0d9d57f047340197336b808bf5dd23a08ad61525206995b7f6aeb91402acb1cd3f60e836217a2b68"
}
Updated 7 days ago