Validate address
We use these methods to validate addresses, but if you don't want to check them with our server, you can check them yourself via regex.
ERC20: ^(0x)[0-9A-Fa-f]{40}$
BEP20: ^(0x)[0-9A-Fa-f]{40}$
AVAX: ^(X-avax)[0-9A-za-z]{39}$
XMR: ^[48][a-zA-Z|\d]{94}([a-zA-Z|\d]{11})?$
ARBITRUM: ^(0x)[0-9A-Fa-f]{40}$
MATIC: ^(0x)[0-9A-Fa-f]{40}$
POLYGON: ^(0x)[0-9A-Fa-f]{40}$
TON: ^[UE][Qf][0-9a-z-A-Z-_]{46}$
SOL: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
DOGE: ^(D|A|9)[a-km-zA-HJ-NP-Z1-9]{33,34}$
BTC: ^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[(bc1q)|(bc1p)][0-9A-Za-z]{37,62}$
TRC20: ^T[1-9A-HJ-NP-Za-km-z]{33}$
LTC: ^(L|M)[A-Za-z0-9]{33}$|^(ltc1)[0-9A-Za-z]{39}$
BCH: ^[1][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[0-9a-z]{42,42}$
DASH: ^[X|7][0-9A-Za-z]{33}$
Last updated