orca_whirlpools_docs::orca_whirlpools

Function get_account_data_size

pub fn get_account_data_size(
    token_program_id: Pubkey,
    mint_info: &Account,
) -> Result<usize, Box<dyn Error>>
Expand description

Get the size of the account data for a token account

This function returns the size of the account data for a token account given the token program id and the mint info.

§Arguments

  • token_program_id - The token program id
  • mint_info - The mint info

§Returns

The size of the account data for a token account