MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / formatAmount

Function formatAmount

src/utils/common.ts:56–58  ·  view source on GitHub ↗
(value: number | string)

Source from the content-addressed store, hash-verified

54};
55
56export const formatAmount = (value: number | string): string => {
57 return new Intl.NumberFormat("en-US").format(+value);
58};
59
60export function isValidTransactionHash(txHash: string): boolean {
61 // A valid transaction hash is a hex string of length 66 characters (including the '0x' prefix)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected