An Anchor account type for CPI interactions with programs that implement a defined interface, allowing a single account type to work with multiple program implementations. For example, InterfaceAccount<'info, TokenAccount> accepts accounts from both the SPL Token Program and Token-2022, since both implement the token interface. This enables programs to be compatible with multiple token standards without separate code paths.
Sua exploração
0 termos visitados no totalThe most popular framework for building Solana programs in Rust. Anchor provides macros (#…
Ver termo →A mechanism for one program to call another program's instructions during execution. CPIs …
Ver termo →The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623V…
Ver termo →The next-generation token program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) that exten…
Ver termo →