Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 680 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 680 Bytes

ethereum-address

Ethereum address validation with python

This is a clone of the ethereum-address on js isAddress utility method on python

Install

pip install ethereum-address

Usage

from etherium_address import is_address

if is_address(value):
    print('Valid ethereum address.')
else:
    print('Invalid Ethereum address.')

API

is_address (address)

Returns true if the address (string) is an Ethereum address

is_checksum_address (address)

Returns true if the address (string) is an Ethereum checksum address