Easy to Convert Your Phantom Wallet Private Key to Solana Json Key File.
$ cargo install phantom-secret
$ phantom YOUR_PHANTOM_PRIVATE_KEY
✅ Generated File: ./phantom.json
Now you have your key file
phantom.json
Example
$ phantom 5Y6ppfatwVHUekNX8FDNUrcDBThS7Ai5B6B8vsEk94jitLKPPUkiMXsbJrQw4yf4DpZJymnqLaWKuCpQ4j3Wp88e
✅ Generated File: ./phantom.json
Bug reports and pull requests are welcome on GitHub at https://github.com/EpicsDao/phantom-secret. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the Apache-2.0 License.
Everyone interacting in the EpicsDAO project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.