Skip to main content

Module state

Module state 

Source
Expand description

Tier 1 — on-chain state queries for an owner’s token accounts.

Structs§

MintAndAta
Per-mint state: the mint account itself, the ATA address, and the ATA account if it currently exists on chain.
TokenAccountState
On-chain state for an owner’s token accounts across a set of mints.

Functions§

assemble_token_account_state
Assemble token account state from caller-provided mint accounts. Performs one RPC get_multiple_accounts call (ATAs only).
fetch_token_account_state
Fetch the on-chain state for an owner across a set of mints. Performs two RPC get_multiple_accounts calls (mints, then ATAs).