gill

uiAmountToAmountForMintWithoutSimulation

function uiAmountToAmountForMintWithoutSimulation(
   rpc, 
   mint, 
uiAmount): Promise<bigint>;

Convert a UI amount back to the raw amount

Parameters

ParameterTypeDescription
rpcRpc<GetAccountInfoApi>Rpc to use
mintAddressMint to use for calculations
uiAmountstringUI Amount to be converted back to raw amount

Returns

Promise<bigint>

Raw amount

On this page