avalidator

package
v0.9.4-RC05 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Address validator for blockchain wallets and addresses

Index

Constants

View Source
const (
	BlockchainTypeBitcoin           string = "bitcoin"
	BlockchainTypeLitecoin          string = "litecoin"
	BlockchainTypeBitcoinCash       string = "bitcoincash"
	BlockchainTypeDogecoin          string = "dogecoin"
	BlockchainTypeTron              string = "tron"
	BlockchainTypeEthereum          string = "ethereum"
	BlockchainTypeBinanceSmartChain string = "bsc"
	BlockchainTypePolygon           string = "polygon"
	BlockchainTypeArbitrum          string = "arbitrum"
)

Variables

This section is empty.

Functions

func ValidateAddressByBlockchain

func ValidateAddressByBlockchain(addr, blockchain string) bool

ValidateAddressByBlockchain validates an address by blockchain type.

func ValidateAddressesByBlockchain

func ValidateAddressesByBlockchain(addresses []string, blockchain string) error

ValidateAddressesByBlockchain validates multiple addresses by blockchain type.

func ValidateBitcoinAddress

func ValidateBitcoinAddress(addr string) bool

Bitcoin validates a Bitcoin address for Mainnet or Testnet.

func ValidateBitcoinCashAddress

func ValidateBitcoinCashAddress(addr string) bool

BitcoinCash validates a Bitcoin Cash address for Mainnet or Testnet.

func ValidateDogecoinAddress

func ValidateDogecoinAddress(addr string) bool

Dogecoin validates a Dogecoin address for Mainnet or Testnet.

func ValidateEVMAddress

func ValidateEVMAddress(addr string) bool

EVMAddress validates an EVM-compatible address (Ethereum, BSC, Polygon).

func ValidateLitecoinAddress

func ValidateLitecoinAddress(addr string) bool

Litecoin validates a Litecoin address for Mainnet or Testnet.

func ValidateTronAddress

func ValidateTronAddress(addr string) bool

Tron validates a Tron address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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