IDL Type Generator
GitHub
Twitter
Toggle theme
Generate TypeScript types from Anchor IDL ðŸ§
IDL Type Generator
Enter IDL
Step 1: Enter your IDL file to convert.
Settings
Configure generation settings.
Export all types
Do not replace BN
Replace BN with number type
Replace BN with BigNumber type
Include Types
Include Accounts
Include Enums
Include Events
Use interfaces
Use types
Paste
Clear
Generate
Generate Types
Step 2: Generate types from IDL.
Select Included Types
Choose which types to include in the generated types. This will populate once an IDL is entered.
Select All
Deselect All
Clear
Copy