| name | carbon-associated-token-account |
| description | Carbon decoder reference for Associated Token Account program on Solana — program `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`, crate `carbon-associated-token-account-decoder` (3 instructions). Use when decoding, indexing, or analyzing this program with Carbon: looking up instruction args/discriminators/accounts, account struct fields, or CPI event schemas. Run the bundled `scripts/carbon.py` to extract details from the local cargo cache. Triggers on "SPL Associated Token Account", "associated-token-account", "carbon-associated-token-account-decoder", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "SplAssociatedTokenAccountDecoder", "Associated Token Account program", "Create", "CreateIdempotent", "RecoverNested". |
SPL Associated Token Account
- Crate:
carbon-associated-token-account-decoder
- Program ID:
ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL
- Decoder struct:
SplAssociatedTokenAccountDecoder
- Has CPI events: no
Instructions
Create
CreateIdempotent
RecoverNested
Pulling full details
The plugin's scripts/carbon.py extracts struct fields, discriminators, and
account variants directly from the decoder crate in your cargo registry cache.
CARBON=$(find ~ -path '*/carbon-solana/scripts/carbon.py' -print -quit)
python3 "$CARBON" list associated-token-account
python3 "$CARBON" ix associated-token-account <InstructionName>
python3 "$CARBON" account associated-token-account <AccountName>
python3 "$CARBON" event associated-token-account <EventName>
python3 "$CARBON" type associated-token-account <TypeName>
python3 "$CARBON" path associated-token-account
Requires ast-grep and the crate to be present in ~/.cargo/registry/src/
(any cargo project that depends on carbon-associated-token-account-decoder will populate it after a
cargo build or cargo fetch). If neither is available, run
cargo install ast-grep and pull a project that uses Carbon.