项目作者: KOREAN139

项目描述 :
let's validate ETH address
高级语言: Go
项目地址: git://github.com/KOREAN139/ethereum-address-validator.git
创建时间: 2019-02-08T18:20:53Z
项目社区:https://github.com/KOREAN139/ethereum-address-validator

开源协议:MIT License

下载


ethav (ethereum-address-validator)

Simple address validator for ETH

Checks format and checksum of address

Installation

  1. Download and install:
    1. go get -u github.com/KOREAN139/ethereum-address-validator
  2. Import it in your code:
    1. import "github.com/KOREAN139/ethereum-address-validator"

Quick Start

  1. package main
  2. import "github.com/KOREAN139/ethereum-address-validator"
  3. func main() {
  4. // ethav.Validate(ETH address) will return error if address is invalid
  5. if err := ethav.Validate("0xdbF03B407c01E7cD3CBea99509d93f8DDDC8C6FB"); err != nil {
  6. // do error handling
  7. }
  8. // do your work
  9. }