Signing and Sending Transactions
We will write a abortable promise that gets the transaction instructions in an array input and return the signatures of the signed and sent transactions. MWA provides a default methodsignAndSendTransactions to achieve this.
services/mwa/useSignAndSendTransaction.ts
Creating a TransactionSendingSigner
Kit SDK providesTransactionSendingSigner interface for signers that can sign and send transactions in one go.
Here is how we can implement it to work with our hook.
mwa/TransactionSendingSigner.ts
Example Implementation
This marks the end of the MWA with KIT guide. If you are looking for an implemented example, check out this repo.