Skip to main content

@morph-l2/sdkDocs


@morph-l2/sdk / toAddress

Function: toAddress()

toAddress(addr): string

Converts an address-like into a 0x-prefixed address string.

Parameters

addr: AddressLike

Address-like to convert into an address.

Returns

string

Address-like as an address.

Source

src/utils/coercion.ts:104