Skip to content

Commit 676e584

Browse files
Merge pull request #8874 from BitGo/T1-3417
feat(express): add qr param to sendmany, sendcoins, prebuildAndSign s…
2 parents f9e509b + 45e4739 commit 676e584

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

modules/express/src/typedRoutes/api/v2/prebuildAndSignTransaction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ export const PrebuildAndSignTransactionBody = {
398398
keepAlive: optional(t.boolean),
399399
/** Transaction format ('legacy', 'psbt', or 'psbt-lite') */
400400
txFormat: optional(t.union([t.literal('legacy'), t.literal('psbt'), t.literal('psbt-lite')])),
401+
/** (UTXO only) Quantum-resistant sweep mode — sweeps quantum-exposed unspents to fresh wallet addresses */
402+
qr: optional(t.boolean),
401403
/** Solana custom instructions */
402404
solInstructions: optional(t.array(SolInstruction)),
403405
/** Solana versioned transaction data */

modules/express/src/typedRoutes/api/v2/sendCoins.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ export const SendCoinsRequestBody = {
353353
/** Flag indicating if this is the last signature */
354354
isLastSignature: optional(t.boolean),
355355

356+
/** (UTXO only) Quantum-resistant sweep mode — sweeps quantum-exposed unspents to fresh wallet addresses */
357+
qr: optional(t.boolean),
358+
356359
/** Pre-built transaction object */
357360
txPrebuild: optional(t.any),
358361

modules/express/src/typedRoutes/api/v2/sendmany.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ export const SendManyRequestBody = {
429429
/** Flag indicating if this is the last signature */
430430
isLastSignature: optional(t.boolean),
431431

432+
/** (UTXO only) Quantum-resistant sweep mode — sweeps quantum-exposed unspents to fresh wallet addresses */
433+
qr: optional(t.boolean),
434+
432435
/** Pre-built transaction object */
433436
txPrebuild: optional(t.any),
434437

0 commit comments

Comments
 (0)