You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* For account-based coins, it calculates the maximum spendable amount and uses sendMany.
22
22
*/
23
23
exportconstWalletSweepBody={
24
-
/** The destination address to send all funds to - REQUIRED */
24
+
/** The destination address for the sweep transaction */
25
25
address: t.string,
26
26
27
-
/** The wallet passphrase to decrypt the user key */
27
+
/** Passphrase to decrypt the user key on the wallet */
28
28
walletPassphrase: optional(t.string),
29
29
30
-
/** The extended private key (alternative to walletPassphrase) */
30
+
/** Private key in string form, if walletPassphrase is not available */
31
31
xprv: optional(t.string),
32
32
33
-
/** One-time password for 2FA */
33
+
/** Two factor auth code to enable sending the transaction */
34
34
otp: optional(t.string),
35
35
36
-
/** The desired fee rate for the transaction in satoshis/kB (UTXO coins) */
36
+
/** Custom fee rate (in base units) per kilobyte (or virtual kilobyte). For example, satoshis per kvByte */
37
37
feeRate: optional(t.number),
38
38
39
-
/** Upper limit for fee rate in satoshis/kB (UTXO coins) */
39
+
/** (BTC only) The maximum fee rate (in base units) per kilobyte (or virtual kilobyte). For example, satoshis per kvByte. The `maxFeeRate` limits the fee rate generated by both `feeMultiplier` and `numBlocks` */
40
40
maxFeeRate: optional(t.number),
41
41
42
-
/** Estimate fees to aim for confirmation within this number of blocks (UTXO coins) */
42
+
/** Number of blocks to wait to confirm the transaction */
43
43
feeTxConfirmTarget: optional(t.number),
44
44
45
-
/** Allows sweeping 200 unspents when wallet has more than that (UTXO coins) */
45
+
/** Use `allowPartialSweep: true` to sweep part of a wallet when there are too many unspents to empty the wallet in a single transaction. While the expected outcome of a single sweep call would usually be an empty wallet, using the allowPartialSweep option may leave some funds in the wallet. Making repeated calls with the allowPartialSweep option allows emptying wallets with many unspents without consolidating first */
46
46
allowPartialSweep: optional(t.boolean),
47
47
48
-
/** Transaction format: 'legacy', 'psbt', or 'psbt-lite' (UTXO coins) */
48
+
/** [UTXO only] Format of the returned transaction hex serialization. `legacy` for serialized transaction in custom bitcoinjs-lib format. `psbt` for BIP174 serialized transaction */
* Sweep all funds from a wallet to a specified address
53
+
* 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.
54
54
*
55
-
* This endpoint sweeps (sends) all available funds from a wallet to a single destination address.
0 commit comments