Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Latest commit

 

History

History
78 lines (44 loc) · 1.45 KB

docs.md

File metadata and controls

78 lines (44 loc) · 1.45 KB

Table of Contents

isValidChecksumAddress

Validates checksummed address.

Parameters

  • address string
  • chainId number where checksummed address should be valid.

Returns bool if the address is valid on the specified chain.

isValidAddress

Validates address.

Parameters

Returns bool if the address is valid.

toChecksumAddress

Generates checksummed address.

Parameters

  • address string
  • chainId (optional, default null)
  • chain number where checksummed address should be valid.

Returns string address with checksum applied.

stripHexPrefix

Removes prefix from address if exists.

Parameters

Returns string address without prefix

keccak

Generates keccak sha256

Parameters

Returns string keccak sha256