diff --git a/.changeset/witty-mails-travel.md b/.changeset/witty-mails-travel.md new file mode 100644 index 00000000..be55ccaa --- /dev/null +++ b/.changeset/witty-mails-travel.md @@ -0,0 +1,5 @@ +--- +'@solana/wallet-standard-features': minor +--- + +Add `mode` option to `signAndSendTransaction` input diff --git a/packages/core/features/src/signAndSendTransaction.ts b/packages/core/features/src/signAndSendTransaction.ts index b4d84895..61f4f06f 100644 --- a/packages/core/features/src/signAndSendTransaction.ts +++ b/packages/core/features/src/signAndSendTransaction.ts @@ -55,6 +55,9 @@ export interface SolanaSignAndSendTransactionOutput { /** Options for signing and sending a transaction. */ export type SolanaSignAndSendTransactionOptions = SolanaSignTransactionOptions & { + /** Mode for signing and sending transactions. */ + readonly mode?: SolanaSignAndSendTransactionMode; + /** Desired commitment level. If provided, confirm the transaction after sending. */ readonly commitment?: SolanaTransactionCommitment; @@ -64,3 +67,6 @@ export type SolanaSignAndSendTransactionOptions = SolanaSignTransactionOptions & /** Maximum number of times for the RPC node to retry sending the transaction to the leader. */ readonly maxRetries?: number; }; + +/** Mode for signing and sending transactions. */ +export type SolanaSignAndSendTransactionMode = 'parallel' | 'serial';