GET: Digital Asset Address
GET /deposits/digital_asset_addresses
GET /deposits/digital_asset_addresses
const getDepositAddresses = () => {
const body = {}
const timestamp = Math.round(Date.now() / 1000)
const payload = timestamp + 'GET' + '/deposits/digital_asset_addresses' + '{}'
const decodedSecret = Buffer.from(apiSecret, 'base64')
const hmac = crypto.createHmac('sha256', decodedSecret)
const signedPayload = hmac.update(payload).digest('base64')
// SET HEADERS
const headers = {
'X-NDAX-API-KEY': 'public_key',
'X-NDAX-SIGNED': signedPayload,
'X-NDAX-TIMESTAMP': timestamp,
'X-NDAX-PASSPHRASE': 'passphrase'
}
const options = {
headers,
body,
json: true
}
return request.get(
'https://api.ndax.in/deposits/digital_asset_addresses',
options
)
}
Sample Response
{
"message": [
{
"created_at": 1561996924964,
"address": "2NCgV7BXXafJZ86utcYFs5m3tCpkcpLafeG",
"participant_code": "ABCDEF",
"asset": "BTC"
},
{
"created_at": 1561996924964,
"address": "0xe01ed9e684de649bfec799cd79f6c27335c23cb9",
"participant_code": "ABCDEF",
"asset": "ETH"
}
]
}
Returns an array of addresses associated with a participant's digital asset wallet. In order to GET deposit addresses for a participant_code other than yourself, you must have the submits_platform_withdrawals_for
relationship against said participant_code. Refer here for more information on relationship types.
Query parameters include:
participant_code
(optional) will return addresses for one of your customers - if not included, will default to the participant the API key was created forasset
(optional) will filter to a specific asset
Response:
created_at
The timestamp for when the address was created
timestamp
address
The digital wallet address
string
asset
The asset code for the request, e.g. BTC
string
participant_code
The participant the request belongs to, e.g. ABCDEF
string
Last updated