Sign Transaction
Once an application is connected to Martian wallet via connect method, an app can request the user to sign a transaction using window.martian.signTransaction()
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
Aptos RawTransaction serialized string
Below is an example code describing the way to sign a transaction.
Last updated