https://github.com/korean139/ethereum-address-validator
let's validate ETH address
https://github.com/korean139/ethereum-address-validator
address-validation eth ethereum ethereum-address go golang validator
Last synced: 2 months ago
JSON representation
let's validate ETH address
- Host: GitHub
- URL: https://github.com/korean139/ethereum-address-validator
- Owner: KOREAN139
- License: mit
- Created: 2019-02-08T18:20:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-08T19:59:31.000Z (over 7 years ago)
- Last Synced: 2024-07-22T12:57:29.195Z (almost 2 years ago)
- Topics: address-validation, eth, ethereum, ethereum-address, go, golang, validator
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethav (ethereum-address-validator)
Simple address validator for **ETH**
Checks format and checksum of address
# Installation
1. Download and install:
```
go get -u github.com/KOREAN139/ethereum-address-validator
```
2. Import it in your code:
```go
import "github.com/KOREAN139/ethereum-address-validator"
```
# Quick Start
```go
package main
import "github.com/KOREAN139/ethereum-address-validator"
func main() {
// ethav.Validate(ETH address) will return error if address is invalid
if err := ethav.Validate("0xdbF03B407c01E7cD3CBea99509d93f8DDDC8C6FB"); err != nil {
// do error handling
}
// do your work
}
```