Skip to content

AudouxH/isValidWeb3Address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isvalidweb3address

npm version License: ISC

isvalidweb3address is a lightweight npm package that provides a simple way to validate Ethereum addresses according to Web3 standards.

Installation

To use isvalidweb3address in your project, you can install it using npm:

npm install isvalidweb3address

Usage

Import the isValidWeb3Address function and use it to validate Ethereum addresses:

import isValidWeb3Address from 'isvalidweb3address';

const addressToCheck = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';

if (isValidWeb3Address(addressToCheck)) {
  console.log('Valid Ethereum address');
} else {
  console.log('Invalid Ethereum address');
}

API

This function takes an Ethereum address as input and returns true if the address is valid according to Web3 standards, and false otherwise.

  • address: The Ethereum address to validate.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open issues or pull requests in the GitHub repository.

License

This package is distributed under the ISC License.

About

Validate Ethereum addresses easily with the isValidWeb3Address npm package for seamless integration into your blockchain projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published