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 moreconstmultisigPda=newPublicKey("MyAmazingMultisig");// Unique index of the transaction you are creatingconsttransactionIndex=1n;const [proposalPda,proposalBump] =multisig.getProposalPda({ multisigPda, transactionIndex,});
Fetch the Proposal Account Info
constproposalAccount=awaitProposal.fromAccountAddress( connection, proposalPda );// Log the proposal statusconsole.log("Proposal Status",proposalAccount.status);