Package Exports
- soltool
- soltool/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (soltool) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
soltool
A CLI tool to convert Solana keypair JSON files to base58 format.
Installation
npm install -g soltool
Usage
Convert keypair JSON to base58:
soltool -i keypair.json
Extract public key only:
soltool -i keypair.json --public-key
Save output to file:
soltool -i keypair.json -o keypair.txt
Options
-i, --input <path>
: Input keypair JSON file path (required)-o, --output <path>
: Output file path (optional)-p, --public-key
: Display public key only--help
: Display help information--version
: Display version information
Input Format
The input JSON file should contain an array of 64 numbers representing the Solana keypair bytes:
[
124, 201, 5, 69, ..., 233 // 64 numbers total
]
License
MIT