Sign and Submit Transaction
Once an application is connected to Martian wallet via connect method, an app can request the user to sign and submit the transaction using window.martian.signAndSubmitTransaction()
and it will return a Promise that resolves when the user accepts the request and reject (throw when awaited) when the user declines the request or request is not valid/fails. It takes one parameter listed below
Signed serialized Aptos RawTransaction serialized string
Below is an example code describing the way to sign and submit a transaction.
Last updated