Skip to content

Address Errors

Address.InvalidAddressError

Thrown when an address is invalid.

Examples

import { Address } from 'ox'
 
Address.from('0x123')
Address.InvalidAddressError: Address `0x123` is invalid.

Source: src/Address.ts

Address.InvalidChecksumError

Thrown when an address does not match its checksum counterpart.

Source: src/Address.ts

Address.InvalidInputError

Thrown when an address is not a 20 byte (40 hexadecimal character) value.

Source: src/Address.ts