Get Old Address

This method can be used to fetch old Sui address from a public key

Below is an example code describing the way to call getOldAddress API in Martian Wallet for the Sui network.

// Fetch transaction details
await window.martian.sui.connect(['viewAccount', 'suggestTransactions']);
const publicKey = "0xf73458a59ba9ba623e093835603954fd3efebed2c73797d8221b974579def32c"
const { oldAddress } = await window.martian.sui.getOldAddress(publicKey);
// above code output

Last updated