-
Notifications
You must be signed in to change notification settings - Fork 39
Description
What problem does this new feature solve?
Currently, AppKit provides methods like signTransaction for signing individual transactions. However, many dApps require users to sign multiple transactions in sequence (e.g., batch operations in DeFi, multi-step approvals, or swapping with permit). To improve user experience and streamline these workflows, we propose adding a signAllTransaction method that accepts an array of transactions and signs them in a single batch or sequential manner, depending on the wallet’s capabilities.
Describe the solution you'd like
- Batch token transfers or NFT mints.
- Multi-signature workflows requiring several transactions.
- Initializing and interacting with complex DeFi protocols (e.g., creating a pool + depositing liquidity).
- Reducing the number of wallet approval prompts when multiple transactions are required.
-
transactions: Array of Transaction objects from @solana/web3.js.
- Returns an array of signed Transaction objects in the same order.
Additional Context
Solana’s @solana/wallet-adapter-base defines signAllTransactions as an optional method; many wallets implement it. AppKit should expose this functionality to dApps built with React and React Native.
This addition would align AppKit with Solana wallet standards and simplify development of dApps that need to sign multiple transactions in one flow.