Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Created July 22, 2019 11:14
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save WietseWind/39201df826b401445e8896120625d400 to your computer and use it in GitHub Desktop.
Save WietseWind/39201df826b401445e8896120625d400 to your computer and use it in GitHub Desktop.
Encode/Decode X-address in the browser (plain HTML+JS)
<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