Skip to content

Instantly share code, notes, and snippets.

@zapkub
Last active December 30, 2021 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zapkub/dad4a5b50d5d2d34a9170fee43b1e8d6 to your computer and use it in GitHub Desktop.
Save zapkub/dad4a5b50d5d2d34a9170fee43b1e8d6 to your computer and use it in GitHub Desktop.
export phantom wallet secret key to solana cli system keypair format
npm install -g bs58
BS58_SECRET=<YOUR_SECRET> NODE_PATH="$(npm config get prefix)/lib/node_modules" node -e "console.log(new Uint8Array(require('bs58').decode(process.env.BS58_SECRET)))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment