Sending Transactions
To send a transaction with Hyphen Android SDK
Creating, Signing, and Sending Transactions
To create, sign, and send a transaction with the Hyphen Android SDK, follow these steps:
Explanation:
cadenceScript
: The Cadence script to be executed in the transaction.arguments
: List of arguments for the transaction. In this example, it's an empty list.withAuthorizer
: A boolean indicating whether the transaction requires an authorizer. Set tofalse
in this example.txId
: The transaction ID returned by thesignAndSendTransaction
method.
Utilities
Wait for Transaction Seal
To wait for a transaction to be sealed on the Flow blockchain, you can use waitForSeal
utility method.
Get Transaction Result
To retrieve the result of a specific transaction:
Last updated
Was this helpful?