/api/v2/{coin}/wallet/{walletId}/consolidateAccount
Build, sign, and send a consolidation transaction for an account-based asset all in 1 call. For account-based assets, consolidating the balances in the receive addresses to the base address maximizes the spendable balance of a wallet.
coin
stringRequiredbtc
walletId
stringRequired59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
consolidateAddresses
array[string] walletPassphrase
string prv
string apiVersion
string full
lite
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); });
success
required txRequestId
string required version
number required latest
boolean required walletId
string required walletType
string cold
custodial
custodialPaired
hot
trading
distributedCustody
enterpriseId
string state
string required initialized
pendingApproval
pendingUserCommitment
pendingUserRShare
pendingUserGShare
readyToSend
pendingUserSignature
pendingDelivery
signed
delivered
canceled
rejected
failed
date
string <date-time>
required 2018-05-05T19:46:22.019Z
createdDate
string <date-time>
required 2018-05-05T19:46:22.019Z
userId
string required initiatedBy
string required updatedBy
string required intent
Any ofrequired intents
required pendingApprovalId
string isCanceled
boolean unsignedTxs
array[object] signatureShares
array[object] commitmentShares
array[object] txHashes
array[string] failure
array[string] required error
string required requestId
string required context
object name
string required