Links

Get Accounts

This method can be used to fetch all Sui accounts present in the wallet
Below is an example code describing the way to call getAccounts API.
getAccount()
// Fetch transaction details
const response = await window.martian.sui.connect(['viewAccount', 'suggestTransactions']);
const details = await window.martian.getAccounts();
console.log(details);
// above code output
[
"e68a59b81e14ce084c91bad7726cc489e38b3940"
]