Send Transaction
SendTransaction
Once your app is connected to Blocto wallet, it can send transactions on behalf of the user, with the user's permission. To send a transaction, the app must:
create an unsigned transaction.
send the unsigned transaction to Blocto.
In Aptos, Transaction Payload can be divided into the following two types:
Entry Function Payload: a transaction payload that can call a Module on the blockchain.
Script Payload: a transaction payload that includes a script.
Currently, the SendTransaction method in Unity SDK supports both structures. The following is an example code to create a Transaction Payload.
Entry Function Payload
Script Payload
You can then use the SendTransaction provided by the Unity SDK to send the Transaction Payload to Blocto for signing and sending it to the blockchain.
Last updated