Generate Sign and Submit Transaction
Once an application is connected to Martian wallet via connect method, an app can generate and submit the transaction using window.martian.generateSignAndSubmitTransaction()
and it will return a Promise 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.
Last updated