We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e77ba48 + 91bdf7a commit 2f4f62aCopy full SHA for 2f4f62a
1 file changed
modules/sdk-core/src/bitgo/wallet/wallet.ts
@@ -705,6 +705,12 @@ export class Wallet implements IWallet {
705
params: ConsolidateUnspentsOptions | FanoutUnspentsOptions = {},
706
option = ManageUnspentsOptions.BUILD_SIGN_SEND
707
): Promise<unknown> {
708
+ if (this._wallet.type === 'custodial' && routeName === 'consolidate') {
709
+ return this.initiateTransaction({ ...params, type: 'consolidate' });
710
+ } else if (this._wallet.type === 'custodial' && routeName === 'fanout') {
711
+ throw new Error('Fanout is not supported for custodial wallets');
712
+ }
713
+
714
common.validateParams(params, [], ['walletPassphrase', 'xprv']);
715
716
const reqId = new RequestTracer();
0 commit comments