Addresses with different formats

How to verify addresses when there are different formats

Some virtual assets have more than one address format that is "interoperable," meaning you can send either of the addresses, and they will arrive in the correct wallet regardless. Below is a non-exhaustive list of these with how the conversion can be done.


XRP

If you are using the XRPL address format, but the originating VASP is sending you an 𝗫-address, you can use the following javascript to convert it before doing the look-up in your address book:

const {Encode, Decode} = require('xrpl-tagged-address-codec')

const tagged = Encode({ account: 'rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY', tag: 495 })
console.log(tagged)

const untagged = Decode(tagged)
console.log(untagged)

Did this page help you?