Created
July 22, 2019 11:14
-
-
Save WietseWind/39201df826b401445e8896120625d400 to your computer and use it in GitHub Desktop.
Encode/Decode X-address in the browser (plain HTML+JS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://xrpaddress.info/js/xrpl-tagged-address-codec-browser.js"></script> | |
<script> | |
var XCodec = require('xrpl-tagged-address-codec') | |
console.log(XCodec.Encode({ account: 'rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY', tag: 495 })) | |
console.log(XCodec.Decode('XV5sbjUmgPpvXv4ixFWZ5ptAYZ6PD28Sq49uo34VyjnmK5H')) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment