const myTransactionSendingSigner: TransactionSendingSigner<'1234..5678'> = {
address: address('1234..5678'),
signAndSendTransactions: async (transactions: Transaction[]): Promise<SignatureBytes[]> => {
// My custom signing logic.
},
};
Here are the main characteristics of this signer interface:
confirmed commitment)
before notifying the app that they are done.
A signer interface that signs one or multiple transactions before sending them immediately to the blockchain.
It defines a TransactionSendingSignerConfig#signAndSendTransactions | signAndSendTransactions function that returns the transaction signature (i.e. its identifier) for each provided Transaction.
This interface is required for PDA wallets and other types of wallets that don't provide an interface for signing transactions without sending them.
Note that it is also possible for such signers to modify the provided transactions before signing and sending them. This enables use cases where the modified transactions cannot be shared with the app and thus must be sent directly.