Generate Sign and Submit Transaction
Last updated
Last updated
Once an application is connected to Martian wallet via method, an app can generate and submit the transaction using window.martian.generateSignAndSubmitTransaction()
and it will return a that resolves when the request is successful and reject (throw when awaited) when the request is not valid/fails. It takes three parameter listed below
sender: Aptos Address of the owner
payload: function: EntryFunctionId; type_arguments: Array; arguments: Array;
options?: It allow to overwrite default transaction options.
Below is an example code describing the way to generate a transaction.