Proposal Account Info

Let's set the code up

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


const {
    Proposal
} = multisig.accounts;

// Public Key of the Multisig PDA, head to the Multisig Account Info tab to leanrn more
const multisigPda = new PublicKey("MyAmazingMultisig");

// Unique index of the transaction you are creating
const transactionIndex = 1n;


const [proposalPda, proposalBump] = multisig.getProposalPda({
    multisigPda,
    transactionIndex,
});

Fetch the Proposal Account Info

      const proposalAccount = await Proposal.fromAccountAddress(
        connection,
        proposalPda
      );
      
// Log the proposal status
console.log("Proposal Status", proposalAccount.status);