Skip to content

Instantly share code, notes, and snippets.

@janniks
Created April 12, 2022 16:20
Show Gist options
  • Save janniks/68949575ab3d760aeca7ee1962cc5404 to your computer and use it in GitHub Desktop.
Save janniks/68949575ab3d760aeca7ee1962cc5404 to your computer and use it in GitHub Desktop.
addresses — Stacks Signing
const address = userSession.loadUserData().profile.stxAddress;
const mainnetAddress = address.mainnet;
// "SP2K5SJNTB6YP3VCTCBE8G35WZBPVN6TDMDJ96QAH"
const testnetAddress = address.testnet;
// "ST2K5SJNTB6YP3VCTCBE8G35WZBPVN6TDMFEVESR6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment