Glossário Solana
QuizGrafo
Home/Dev Tools/InterfaceAccount (Anchor)
Dev Tools
Compartilhar

InterfaceAccount (Anchor)

📖O que é

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 total
Termos relacionados explorados0/4

Termos Relacionados

Framework AnchorDev Tools

The most popular framework for building Solana programs in Rust. Anchor provides macros (#…

Ver termo →
Invocação Entre Programas (CPI)Programming Model

A mechanism for one program to call another program's instructions during execution. CPIs …

Ver termo →
Programa SPL TokenToken Ecosystem

The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623V…

Ver termo →
Token-2022 (Extensões de Token)Token Ecosystem

The next-generation token program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) that exten…

Ver termo →
Voltar ao glossário