Package Exports
- solana-cli
- solana-cli/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 (solana-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
solana-cli
solana cli for nodejs
Install
npm install solana-cli -g
Usage
Usage: solana-cli [options] [command]
CLI to solana wallet
Options:
-v, --version output the current version
-h, --help display help for command
Commands:
wallet Display the current environment wallet public key address
createWallet Create a new wallet keypair(The newly created wallet cannot be used. You need to execute 'export SOLANA_PRIVATE_KEY=${your private key string}'
first.)
getEndpoint Return current connection provider endpoint
getSlot [options] Fetch the slot that has reached the given or default commitment level, call rpc.getSlot()
getRecentBlock [options] Fetch the latest blockhash from the cluster
getTransaction [options] Fetch parsed transaction details for a confirmed or finalized transaction
getBalance [options] Fetch the balance for the specified public key
token [options] CLI to solana token tools, First you must set the private key to the environment variable SOLANA_PRIVATE=${Your private key}
help [command] display help for command