Squads Protocol Side Track for Hyperdrive
Submit your project
  • Introduction
    • Hyperdrive Hackathon
    • What is Squads Protocol
    • Quickstart
  • Development
    • Overview
    • Instructions - Interact with the program
      • Create Multisig
      • Add Member
      • Add spending limit
      • Remove Spending Limit
      • Create Vault Transaction
      • Create Config Transaction
      • Create Proposal
      • Approve Transaction
      • Reject Proposal
      • Cancel Proposal
      • Execute Transaction
    • PDAs - Read data from the Program
      • Multisig Account Info
      • Transaction Account Info
      • Proposal Account Info
  • Reference
    • Accounts
    • Spending Limits
    • Time-locks
    • Permissions
    • SDKs
    • Transaction Builder
  • Squads CLI
    • Installation
    • Commands
  • Submissions
    • Submit your project
    • Get support
Powered by GitBook
On this page
  1. Development
  2. PDAs - Read data from the Program

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);
PreviousTransaction Account InfoNextAccounts