Skip to content

Commit 1720ac3

Browse files
committed
feat: get max spendable given unspent ids
Add support to get the maximum spendable in a transaction given a set of unspent ids. Ticket: BTC-2052 TICKET: BTC-2052
1 parent 40e80ea commit 1720ac3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/sdk-core/src/bitgo/wallet/iWallet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ export interface UnspentsOptions extends PaginationOptions {
323323
target?: number | string;
324324
segwit?: boolean;
325325
chains?: number[];
326+
unspentIds?: string[];
326327
}
327328

328329
export interface ManageUnspentReservationOptions {

modules/sdk-core/src/bitgo/wallet/wallet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ export class Wallet implements IWallet {
641641
'prevId',
642642
'segwit',
643643
'target',
644+
'unspentIds',
644645
]);
645646

646647
return this.bitgo.get(this.url('/unspents')).query(query).result();

0 commit comments

Comments
 (0)