formatStablecoinAmount()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / formatStablecoinAmount
Function: formatStablecoinAmount()
Section titled “Function: formatStablecoinAmount()”formatStablecoinAmount(
units,symbol,options?):string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:6308
Format stablecoin amount for display
Parameters
Section titled “Parameters”bigint
Amount in smallest units
symbol
Section titled “symbol”Stablecoin symbol
options?
Section titled “options?”Formatting options
includeSymbol?
Section titled “includeSymbol?”boolean
minimumFractionDigits?
Section titled “minimumFractionDigits?”number
maximumFractionDigits?
Section titled “maximumFractionDigits?”number
Returns
Section titled “Returns”string
Formatted string (e.g., “100.50 USDC”)