Send Transaction
Once your app is connected to Blocto wallet, it can send transactions on behalf of the user, with the user's permission.
In order to send a transaction, the app must:
Create an unsigned transaction or transactions.
Have it be signed by the user's Blocto wallet.
Send it with Blocto custom JSON-RPC.
For more information about the transactions on Solana, it is recommended to check out the solnet as well as the official Solana docs.
Plain Transaction
For plain transactions (no dApp-side signing involved), you can just create transaction with solnet and sign-and-send the transaction with SignAndSendTransaction
method.
Partial Sign Transaction
For transactions involving dApp-side signing, first, you need to convert the transaction to our wallet-compatible format by calling ConvertToProgramWalletTransaction
, and sign the instructions with your keys, then sign and send the partial-signed transaction with our SignAndSendTransaction
method.
\
Last updated
Was this helpful?