Documentation
¶
Overview ¶
Address validator for blockchain wallets and addresses
Index ¶
- Constants
- func ValidateAddressByBlockchain(addr, blockchain string) bool
- func ValidateAddressesByBlockchain(addresses []string, blockchain string) error
- func ValidateBitcoinAddress(addr string) bool
- func ValidateBitcoinCashAddress(addr string) bool
- func ValidateDogecoinAddress(addr string) bool
- func ValidateEVMAddress(addr string) bool
- func ValidateLitecoinAddress(addr string) bool
- func ValidateTronAddress(addr string) bool
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 ¶
ValidateAddressByBlockchain validates an address by blockchain type.
func ValidateAddressesByBlockchain ¶
ValidateAddressesByBlockchain validates multiple addresses by blockchain type.
func ValidateBitcoinAddress ¶
Bitcoin validates a Bitcoin address for Mainnet or Testnet.
func ValidateBitcoinCashAddress ¶
BitcoinCash validates a Bitcoin Cash address for Mainnet or Testnet.
func ValidateDogecoinAddress ¶
Dogecoin validates a Dogecoin address for Mainnet or Testnet.
func ValidateEVMAddress ¶
EVMAddress validates an EVM-compatible address (Ethereum, BSC, Polygon).
func ValidateLitecoinAddress ¶
Litecoin validates a Litecoin address for Mainnet or Testnet.
func ValidateTronAddress ¶
Tron validates a Tron address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.