.depositAddresses

Facilitates the management of deposit addresses, allowing users to list or retrieve addresses based on specific tokens, enhancing the deposit process.


Lists all deposit addresses associated with the user's account.

  const  {body: depositAddresses}  = await api.depositAddresses.listDepositAddresses()

  for (const depositAddress of depositAddresses) {
    console.log('type: ', depositAddress.type)
    console.log('address: ', depositAddress.address)
  }


Retrieves a specific deposit address for a given token.

    const {body:depositAddress} = await api.depositAddresses.getDepositAddressByToken(
      'ETH'
    )

    console.log(`deposit address: ${depositAddress}`)