Get Transaction

Once an application is connected to Martian wallet via connect method, an app can fetch a transaction details using window.martian.getTransaction()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 one parameter listed below

  • Transaction hash

Below is an example code describing the way to fetch a transaction.

// Fetch transaction details
const data = await window.martian.getTransaction("0x1ad6e338ca0de42b2b9a2ff6f21081e2ceed975e55a493bebd8003fd4ba1d028");

Last updated