From 89fe39b8119b75f65269c0b94aa8b6e5d0bc66ab Mon Sep 17 00:00:00 2001 From: Mahmoud Date: Mon, 6 Nov 2023 15:12:03 +0200 Subject: [PATCH] broadcast for all psbts instead of individual ones --- src/transactions/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/transactions/types.ts b/src/transactions/types.ts index 7560aad..9fcc4b8 100644 --- a/src/transactions/types.ts +++ b/src/transactions/types.ts @@ -38,6 +38,11 @@ export type PsbtPayload = { broadcast?: boolean; }; +export type SignMultiplePsbtPayload = { + psbtBase64: string; + inputsToSign: InputToSign[]; +}; + export interface SignTransactionPayload extends RequestPayload, PsbtPayload { message: string; } @@ -54,7 +59,8 @@ export type SignTransactionOptions = RequestOptions< export interface SignMultipleTransactionsPayload extends RequestPayload { message: string; - psbts: PsbtPayload[]; + psbts: SignMultiplePsbtPayload[]; + broadcast?: boolean; } export type SignMultipleTransactionsResponse = SignTransactionResponse[];