Generate Transaction
Once an application is connected to Martian wallet via connect method, an app can generate a transaction request serialized byte string using window.martian.generateTransaction()
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