const getTransfers = () => {
const timestamp = Math.round(Date.now() / 1000)
const payload = timestamp + 'GET' + '/transfers/39' + '{}'
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/transfers/39', options)
}
{
"message": [
{
"id": 39,
"client_transfer_id": null,
"created_at": "2020-09-01T20:53:31.653Z",
"updated_at": "2020-09-01T20:53:31.653Z",
"status": "settled",
"from_participant_code": "ABC123",
"from_account_group": "UNALLOCATED",
"to_participant_code": "DEMO01",
"to_account_group": null,
"asset": "BTC",
"amount": "20.00",
"movement_id": "1902a0eb-a925-4d08-bcad-ea8ed4696a24",
"admin_transfer": true
}
]
}
Returns single transfer made to or from your participant, or to or from your platform's account group.
See GET /transfers for response field descriptions.