Skip to content

@swapped/connect-sdk / core / formatAddress

Function: formatAddress()

formatAddress(address, network?, options?): string

Defined in: src/format/formatAddress.ts:16

Mid-truncate an address or tx hash for display (widget formatAddress parity).

Defaults: startChars=5, endChars=4, separator='...'. When network is set, uses that network's AddressFormatConfig.

Parameters

address

string | null | undefined

network?

string | null

options?

FormatAddressOptions = {}

Returns

string