0.1.1 • Published 9 months ago

valid-wallet-address v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Ethereum Address Validator

npm version License

A utility to validate Ethereum wallet addresses for their correctness and existence on the Ethereum network.

Installation

You can install the Ethereum Address Validator package using npm:

npm install valid-wallet-address
  1. Import the isValidAddress function from the package:
import { isValidAddress } from 'valid-wallet-address'
  1. Provide an Ethereum address to the isValidAddress function:
const address = '0x1212'
isValidAddress(address)
  .then((valid) => {
    if (valid) {
      console.log('Valid Ethereum address')
    } else {
      console.log('Invalid Ethereum address')
    }
  })
  .catch((error) => console.error('Error:', error))

The function returns a Promise that resolves to true for a valid Ethereum address and false for an invalid one.

0.1.1

9 months ago

0.1.0

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.2

9 months ago