Skip to main content

toHumanReadableString()

function toHumanReadableString(amount, token): string;

Defined in: atomiq-sdk/src/utils/TokenUtils.ts:13

Converts a raw bigint amount to a human-readable string with decimals

Parameters

ParameterTypeDescription
amountbigintAmount in base units
tokenTokenToken

Returns

string