Function spl_associated_token_account::tools::account::get_account_len

source ยท
pub fn get_account_len<'a>(
    mint: &AccountInfo<'a>,
    spl_token_program: &AccountInfo<'a>,
    extension_types: &[ExtensionType],
) -> Result<usize, ProgramError>
Expand description

Determines the required initial data length for a new token account based on the extensions initialized on the Mint