1.0.0 • Published 4 years ago
to-checksum-address v1.0.0
to-checksum-address
Validates addresses using an injective function that makes capital letters redundant. RSKIP60 describes an address checksum mechanism that can be implemented in any network based on EIP-55. Allows using chainIds defined in EIP-155
Table of Contents
Install
//npm
npm install to-checksum-address
//yarn
yarn add to-checksum-address
Usage
// Node.js require
const toChecksumAddress = require("to-checksum-address");
// ES6 import
import toChecksumAddress from "to-checksum-address";
toChecksumAddress("0x88250f772101179a4ecfaa4b92a983676a3ce445", 30);
// returns 0x88250F772101179A4eCfaa4b92A983676A3cE445
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2020 Sebastian Martinez
1.0.0
4 years ago