/api/v2/{coin}/wallet/{walletId}/sweep
The sweep call spends the full balance of the wallet to the provided address. On UTXO coins, the sweep call will fail if the wallet has any unconfirmed funds, or if there are more unspents than can be sent with a single transaction.
coin
stringRequiredbtc
walletId
stringRequired59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
address
string walletPassphrase
string xprv
string otp
string feeTxConfirmTarget
string feeRate
One ofnull
maxFeeRate
One ofnull
^-?\d+$
allowPartialSweep
boolean false
txFormat
string legacy
psbt
legacy
psbt
1 2 3 4 5 6 7 8
let params = { address: '2MwvR24yqym2CgHMp7zwvdeqBa4F8KTqunS', walletPassphrase: 'secretpassphrase1a5df8380e0e30', }; wallet.sweep(params).then(function (transactionInfo) { // print transaction info console.dir(transactionInfo); });
transfer
object coin
string required btc
id
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
wallet
string required 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
enterprise
string 59cd72485007a239fb00282ed480da1f
^[0-9a-f]{32}$
txid
string required b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26
txidType
string transactionHash
blockHash
height
integer required heightId
string date
string <date-time>
required confirmations
integer required type
string required send
receive
value
integer valueString
string required 2000000
^-?\d+$
intendedValueString
string 2000000
^-?\d+$
baseValue
integer baseValueString
string 2000000
^-?\d+$
baseValueWithoutFees
integer baseValueWithoutFeesString
string 2000000
^-?\d+$
feeString
string payGoFee
integer payGoFeeString
string usd
number required usdRate
number required state
string required confirmed
failed
initialized
pendingApproval
rejected
removed
replaced
signed
unconfirmed
confirmed
tags
array[string] required 59cd72485007a239fb00282ed480da1f
history
array[object] required comment
string required vSize
integer coinSpecific
object required sequenceId
string entries
array[object] usersNotified
boolean label
string replaces
array[string] replacedBy
array[string] txid
string tx
One ofstatus
string signed
signed (suppressed)
pendingApproval
error
string required requestId
string required context
object name
string required