payer = signer,
        seeds = ["dummySeed".as_bytes(), party.key().as_ref(), member.key().as_ref()],
        space = DummyStruct::LEN
    pub dummy: Account<'info, DummyStruct>,

let say we have an account with 2 non-constant seeds. In anchor js library, Can we find all members in party like that ?:

allMemberInPartyX = GetAllMembersInParty(partyXPublicKey);

1 Answer 1


You would have to manually iterate over all possibilities for the seeds, generate the PDA and then check if the account exists.

  • Impossible then.
    – Mehmet Ayd
    Commented Oct 14, 2022 at 20:02
  • Not impossible if you know what the original seeds were
    – Henry E
    Commented Oct 15, 2022 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.