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