Skip to content

Commit 1d17680

Browse files
committed
feat: add option to not decorate utxo transfers
Ticket: BTC-2007 TICKET: BTC-2007
1 parent 0cf8c47 commit 1d17680

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export interface TransfersOptions extends PaginationOptions {
305305
includeHex?: boolean;
306306
state?: string[] | string;
307307
type?: string;
308+
decorateUtxoSpecificFields?: boolean;
308309
}
309310

310311
export interface GetTransferOptions {

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

+7
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,13 @@ export class Wallet implements IWallet {
572572
query.type = params.type;
573573
}
574574

575+
if (!_.isNil(params.decorateUtxoSpecificFields)) {
576+
if (!_.isBoolean(params.decorateUtxoSpecificFields)) {
577+
throw new Error('invalid includeHex argument, expecting boolean');
578+
}
579+
query.decorateUtxoSpecificFields = params.decorateUtxoSpecificFields;
580+
}
581+
575582
return await this.bitgo.get(this.url('/transfer')).query(query).result();
576583
}
577584

0 commit comments

Comments
 (0)