Skip to main content

token_account

Function token_account 

Source
pub fn token_account(
    program: TokenProgram,
    mint: Address,
    owner: Address,
    amount: u64,
) -> AccountData
Expand description

An initialized 165-byte account holding amount of mint. Wrapped SOL under Token gets is_native = Some(rent) and rent + amount lamports, otherwise SyncNative/transfers revert. Token-2022 mints whose transfers need account extensions (fee, hook, pausable) need the real account re-balanced with with_token_amount instead.