list_sweepable_addresses
Get a list of sweepable addresses ordered by highest sweepable balance first. This method is useful to find addresses to sweep.
Parameters
currency
: (string) [required] The currency of sweepable balances.limit
: (int) [optional] Limit results per request. Between 1 and 200. Default 50.
Returns
An array of objects containing:
address
: (string) The deposit address.balance
: (string) The sweepable balance of the address in thecurrency
provided in parameters.
Example
Request
{
"id": 1,
"jsonrpc": "2.0",
"method": "list_sweepable_addresses",
"params": {
"currency": "bep20-USDT",
"limit": 20,
}
}
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0xC32FE788ce2fa74696F92Ce26a24a554191fcCaf",
"balance": "5",
},
...
]
}