.depositAddresses
Facilitates the management of deposit addresses, allowing users to list or retrieve addresses based on specific tokens, enhancing the deposit process.
listDepositAddresses()**:
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)
}
getDepositAddressByToken(token)**:
Retrieves a specific deposit address for a given token.
const {body:depositAddress} = await api.depositAddresses.getDepositAddressByToken(
'ETH'
)
console.log(`deposit address: ${depositAddress}`)
Updated 5 months ago