ethereum

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

https://ethereum.stackexchange.com/questions/1374/how-can-i-check-if-an-ethereum-address-is-valid

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct{}

Validator - Ethereum address validator

func New

func New() *Validator

New - Create a Ethereum address validator

func (*Validator) ToChecksumAddress

func (e *Validator) ToChecksumAddress(address string) (string, error)

ToChecksumAddress - Convert an Ethereum address to address with checksum

func (*Validator) ValidateAddress

func (e *Validator) ValidateAddress(address string, isTestnet bool) (isValid bool, msg string)

ValidateAddress - Check an Ethereum address is valid or not

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL