-
I've cloned an IDL of program from mainnet - its a json file. How can I generate a types from it so that I can use them in my typescript tests in anchor? |
Beta Was this translation helpful? Give feedback.
Answered by
decr1x
Jan 14, 2025
Replies: 1 comment
-
Question resolved: use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
decr1x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question resolved: use
anchor idl type
. Note for future readers: if you cloned legacy version of IDL(pre anchor 0.30.1), then before you useanchor type
, convert modern IDL to old one viaanchor idl convert
.