Multisig Account Info

To fetch the account info of a Multisig, you need its account address. The Multisig account address gets derived from its unique createKey. Here's how you can find the multisig account address using the Squads Typescript SDK:

Let's set the code up

import * as multisig from "@sqds/multisig";

const {
    Multisig
} = multisig.accounts;

const [multisigPda] = multisig.getMultisigPda({
    createKey,
});

Let's fetch the Multisig Account Info

const multisigAccount = await Multisig.fromAccountAddress(
    connection,
    multisigPda
);
// Log out the multisig's members
console.log("Members", multisigAccount.members);

For more information on the structure of a Multisig account, head to its reference.

Last updated