3

Is there a pattern in which account the IDL is stored in?

1 Answer 1

3

If there's an IDL published on-chain you can use fetchIdl

For example:

const IDL = await anchor.Program.fetchIdl(new PublicKey("...program ID here..."), provider);
1
  • Is it possible to get different versions of the IDL?
    – Sewy
    Commented Feb 9, 2023 at 5:24

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.