GET: Digital Asset

GET /withdrawals/digital_asset_addresses

const getWithdrawalAddresses = () => {
  const timestamp = Math.round(Date.now() / 1000)
  const payload = timestamp + 'GET' + '/withdrawals/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,
    json: true
  }

  return request.get(
    `https://api.ndax.in/withdrawals/digital_asset_addresses?participant_code=YOUR_PARTICIPANT_CODE`,
    options
  )
}

Sample Response

{
  "message": [
    {
      "withdrawal_account_id": 432,
      "name": "Fund Yes Wallet",
      "address": "M9zjMhjaPfwaeyeH2SY6aWyGqdTS9feg8Z",
      "status": "APPROVED",
      "limit": 1000,
      "asset": "LTC",
      "last_update": 1554395972174,
      "submitted_address": "33nb3pKcSZ69rUNNvZYkksisWvrzCmi3Jt",
      "participant_code": "ABCDEF"
    }
  ],
  "page": 1,
  "total_pages": 1
}

Returns an array of all withdrawal addresses created by users as part of your participant.

Query parameters include:

  • participant_code (optional) will default to the participant the API key was created for

  • page (optional) for paginating through your list of addresses

Response:

ParameterDescriptionType

withdrawal_account_id

The ID of the withdrawal account the address belongs to

number

name

The nickname the address was given when it was created

string

address

The blockchain address

string

status

The approval status of the address

string

asset

The asset code for the specific account, e.g. BTC

string

limit

The limit applied to the account on a per-withdrawal basis

number

last_update

Timestamp for when the withdrawal address last update

timestamp

submitted_address

This is the original value for an address submitted by you, that was converted into a newer format supported by NDAX- this will be null if no conversion is necessary

string

participant_code

The participant the request belongs to, e.g. ABCDEF

string

Last updated