Skip to content

Add isXRPAddress validator #1630

Open
Open
@tadejgolobic

Description

@tadejgolobic

This is a feature request to add new validator that will validate string if it is valid XRP address.

specification
There are two types of XRP addresses:

  • classic address
  • xAddress

classic address is base58 string, that starts with small r and can be between 25 and 35 characters long
xAddress is "extension" of classic address, that also includes destinationTag and is different per network (test & mainnet).

proposal
Add new isXRPAddress validator, that will check if string is vallid XRP classic address. User can also specify options, so that validator can check if address is specific address and/or xAddress.

{
  classicAddress: boolean
  xAddress: {
    test: boolean
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions