IDL (Interface Definition Language)

 In Solana Anchor, an IDL (Interface Definition Language) file is a JSON description of your smart contract that includes:

  • Program name & address

  • Instructions (methods your program exposes)

  • Accounts (data layout for on-chain accounts)

  • Types (custom types or structs used)

  • Events & Errors (if any)

The IDL is automatically generated by Anchor and is used by clients (like web frontends or scripts) to interact with your smart contract easilysimilar to an ABI in Ethereum.


When you anchor build IDL file is generated.



Comments

Popular posts from this blog

Rent in Solana