Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 818 Bytes

rmm-sdk.validateandparseaddress.md

File metadata and controls

31 lines (18 loc) · 818 Bytes

Home > @primitivefi/rmm-sdk > validateAndParseAddress

validateAndParseAddress() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Validates an address and returns the parsed (checksummed) version of that address.

Signature:

export declare function validateAndParseAddress(address: string): string;

Parameters

Parameter Type Description
address string the unchecksummed hex address.

Returns:

string

Exceptions

Throws if address is an invalid hex address.