/api/v2/{coin}/wallet/{walletId}/consolidateAccount/build
This endpoint, builds a consolidation transaction. Once built, you must sign and send the transaction. Consolidates the receive address balances to the root address of a wallet. Consolidation is limited to account-based assets. The spendable balance of a wallet is the balance of the funds in the root address. Therefore, funds from wallets with multiple receive addresses must be consolidated before sending.
coin
stringRequiredalgo
talgo
xtz
txtz
eth
gteth
walletId
stringRequired"59cd72485007a239fb00282ed480da1f"
^[0-9a-f]{32}$
consolidateAddresses
array[string] 1 2 3 4 5 6 7 8 9 10
let params = { consolidateAddresses: [ 'BVMEUTF37WNEQ6GYCZISRFHGLEMOKT5OCPPTTJXVED6JBSXKF6YJJRZRI4', '7ITFVRNTLUHLD4F2PIIYXXIQOAJAPRGMA7JHSN3SFH2BACLK7WM6CHT524', ], }; wallet.consolidateAccount(params).then(function (transactions) { // print generated transactions for signing console.dir(transaction); });
keyDerivationPath
string error
string required requestId
string required context
object name
string required