/api/v2/{coin}/wallet/{walletId}/consolidateUnspents
Build a transaction to consolidate unspents in a wallet. Once built, you must sign and sent the transaction. Consolidating unspents is only for UTXO-based assets.
coin
stringRequiredbtc
walletId
stringRequired59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
feeRate
One ofnull
maxFeeRate
One ofnull
^-?\d+$
maxFeePercentage
integer feeTxConfirmTarget
integer bulk
boolean minValue
One of2000000
^-?\d+$
maxValue
One of2000000
^-?\d+$
minHeight
integer minConfirms
integer enforceMinConfirmsForChange
boolean limit
integer numUnspentsToMake
integer targetAddress
string txFormat
string legacy
psbt
psbt-lite
legacy
psbt
txHex
One of01000000000101d58f82d996dd872012675adadf4606734906b25a413f6e2ee535c0c10aef96020000000000ffffffff028de888000000000017a914c91aa24f65827eecec775037d886f2952b73cbe48740420f000000000017a9149304d18497b9bfe9532778a0f06d9fff3b3befaf870500473044022023d7210ba6d8bbd7a28b8af226f40f7235caab79156f93f9c9969fc459ea7f73022050fbdca788fba3de686b66b3501853695ff9d6f375867470207d233b099576e001000069522103d4788cda52f91c1f6c82eb91491ca76108c9c5f0839bc4f02eccc55fedb3311c210391bcef9dcc89570a79ba3c7514e65cd48e766a8868eca2769fa9242fdcc796662102ef3c5ebac4b54df70dea1bb2655126368be10ca0462382fcb730e55cddd2dd6a53aec8b11400
txInfo
object changeAddresses
array[string] 2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS
nOutputs
integer 2
nP2SHInputs
integer 0
nSegwitInputs
integer 1
unspents
array[object] walletAddressDetails
object feeInfo
object size
integer 776
fee
integer 38800
feeRate
One ofnull
payGoFee
integer 0
payGoFeeString
integer 0
error
string required requestId
string required context
object name
string required