Get Account

This method can be used to fetch account details, It takes one parameter listed below.

  • address: Any valid aptos address

Below is an example code describing the way to fetch account details.

// Fetch transaction details
const response = await window.martian.connect();
const address = response.address;
const details = await window.martian.getAccount(address);
console.log(details);
// above code output
{
    "sequence_number": "0",
    "authentication_key": "0x96da8990a7230a82250e85d943ca95e2e9319e5558b0f544f2d7a6aad327e46f"
}

Last updated