πŸ”Get an address for a Signer

In this section we'll explain how to get a Substrate address from a wallet connected using Talisman

How to get the Substrate accounts of an user using Talisman

        const talismanExtension = window.injectedWeb3["talisman"];
        const extension = await talismanExtension.enable();
        let acc = await extension.accounts.get();
        const sr25519Account = acc.find(
          (account) => account.type === "sr25519"
        );
        const result = sr25519Account
          ? {
              address: sr25519Account.address,
              name: sr25519Account.name,
              type: sr25519Account.type,
            }
          : null;

Last updated