spl_token_2022::instruction

Function amount_to_ui_amount

Source
pub fn amount_to_ui_amount(
    token_program_id: &Pubkey,
    mint_pubkey: &Pubkey,
    amount: u64,
) -> Result<Instruction, ProgramError>
Expand description

Creates an AmountToUiAmount instruction