Generate TypeScript types from Anchor IDL 🧠

IDL Type Generator

Enter IDL

Step 1: Enter your IDL file to convert.

Settings

Configure generation settings.
Do not replace BN
Replace BN with number type
Replace BN with BigNumber type
Use interfaces
Use types

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.