0 (NO_PREFIX_MATCHED), 1 (INVALID_CHECKSUM), 2 (INVALID_LENGTH) or 3 (VALID).
Used to check if an address or a contract address is valid.
import { validateAddress } from '@taquito/utils';const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'const validation = validateAddress(pkh)console.log(validation)// This example return 3 which correspond to VALID Copy
import { validateAddress } from '@taquito/utils';const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'const validation = validateAddress(pkh)console.log(validation)// This example return 3 which correspond to VALID
Description
Used to check if an address or a contract address is valid.
Example