GET: Fiat Deposit

GET /deposits/fiat_accounts

const getFiatDepositAccounts = () => {
  const timestamp = Math.round(Date.now() / 1000)
  const payload = timestamp + 'GET' + '/deposits/fiat_accounts' + '{}'
  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-SCXNDAXPASSPHRASE': 'passphrase'
  }
  const options = {
    headers,
    body,
    json: true
  }

  return request.get('https://api.ndax.in/deposits/fiat_accounts', options)
}

Sample Response

{
  "message": {
    "e₹": [
      {
        "type": "united_states_wire",
        "shortName": "KKBK",
        "bankName": "Kotak Mahindra Bank",
        "bankPhysicalAddress": "123 Nowhere St.",
        "accountNumber": "123-123-4",
        "routingNumber": "07102343",
        "recipientName": "Digicash LLP,
        "recipientPhysicalAddress": "Fort, Mumbai",
        "reference": "Your Participant Code"
      },
      { ... }
    ],
    "e₹": [ ... ]
  }
}

Last updated