POST: Transfer
POST /transfers
POST /transfersconst postTransfers = () => {
const timestamp = Math.round(Date.now() / 1000)
const payload = timestamp + 'POST' + '/transfers' + '{}'
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.post('https://api.ndax.in/transfers', options)
}Parameter
Description
Type
Last updated