2019-09-22 20:38:34 -07:00
|
|
|
# solana CLI
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-08-22 13:51:16 -07:00
|
|
|
The [solana-cli crate](https://crates.io/crates/solana-cli) provides a command-line interface tool for Solana
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
## Examples
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Get Pubkey
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana address
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<PUBKEY>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Airdrop SOL/Lamports
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-09-10 16:16:40 -07:00
|
|
|
$ solana airdrop 2
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
2019-09-10 16:16:40 -07:00
|
|
|
"2.00000000 SOL"
|
|
|
|
|
|
|
|
// Command
|
|
|
|
$ solana airdrop 123 --lamports
|
|
|
|
|
|
|
|
// Return
|
|
|
|
"123 lamports"
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Get Balance
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana balance
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
2019-09-10 16:16:40 -07:00
|
|
|
"3.00050001 SOL"
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Confirm Transaction
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana confirm <TX_SIGNATURE>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
2019-04-05 20:25:50 -07:00
|
|
|
"Confirmed" / "Not found" / "Transaction failed with error <ERR>"
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Deploy program
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana deploy <PATH>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<PROGRAM_ID>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Unconditional Immediate Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<TX_SIGNATURE>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Post-Dated Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123 \
|
2018-11-08 14:42:20 -08:00
|
|
|
--after 2018-12-24T23:59:00 --require-timestamp-from <PUBKEY>
|
|
|
|
|
|
|
|
// Return
|
|
|
|
{signature: <TX_SIGNATURE>, processId: <PROCESS_ID>}
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
_`require-timestamp-from` is optional. If not provided, the transaction will expect a timestamp signed by this wallet's private key_
|
|
|
|
|
|
|
|
### Authorized Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-03-05 17:17:50 -08:00
|
|
|
A third party must send a signature to unlock the lamports.
|
2019-09-22 20:38:34 -07:00
|
|
|
|
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123 \
|
2018-11-08 14:42:20 -08:00
|
|
|
--require-signature-from <PUBKEY>
|
|
|
|
|
|
|
|
// Return
|
|
|
|
{signature: <TX_SIGNATURE>, processId: <PROCESS_ID>}
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Post-Dated and Authorized Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123 \
|
2018-11-08 14:42:20 -08:00
|
|
|
--after 2018-12-24T23:59 --require-timestamp-from <PUBKEY> \
|
|
|
|
--require-signature-from <PUBKEY>
|
|
|
|
|
|
|
|
// Return
|
|
|
|
{signature: <TX_SIGNATURE>, processId: <PROCESS_ID>}
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Multiple Witnesses
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123 \
|
2018-11-08 14:42:20 -08:00
|
|
|
--require-signature-from <PUBKEY> \
|
|
|
|
--require-signature-from <PUBKEY>
|
|
|
|
|
|
|
|
// Return
|
|
|
|
{signature: <TX_SIGNATURE>, processId: <PROCESS_ID>}
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Cancelable Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana pay <PUBKEY> 123 \
|
2018-11-08 14:42:20 -08:00
|
|
|
--require-signature-from <PUBKEY> \
|
|
|
|
--cancelable
|
|
|
|
|
|
|
|
// Return
|
|
|
|
{signature: <TX_SIGNATURE>, processId: <PROCESS_ID>}
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Cancel Transfer
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana cancel <PROCESS_ID>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<TX_SIGNATURE>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Send Signature
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana send-signature <PUBKEY> <PROCESS_ID>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<TX_SIGNATURE>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
### Indicate Elapsed Time
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
Use the current system time:
|
2019-09-22 20:38:34 -07:00
|
|
|
|
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana send-timestamp <PUBKEY> <PROCESS_ID>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<TX_SIGNATURE>
|
|
|
|
```
|
|
|
|
|
|
|
|
Or specify some other arbitrary timestamp:
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
```bash
|
2018-11-08 14:42:20 -08:00
|
|
|
// Command
|
2019-08-22 13:51:16 -07:00
|
|
|
$ solana send-timestamp <PUBKEY> <PROCESS_ID> --date 2018-12-24T23:59:00
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
// Return
|
|
|
|
<TX_SIGNATURE>
|
|
|
|
```
|
|
|
|
|
2019-09-22 20:38:34 -07:00
|
|
|
## Usage
|
2019-09-29 21:18:15 -07:00
|
|
|
### solana-cli
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2019-12-20 18:45:42 -08:00
|
|
|
solana-cli 0.23.0 [channel=unknown commit=unknown]
|
2019-09-29 21:18:15 -07:00
|
|
|
Blockchain, Rebuilt for Scale
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana [FLAGS] [OPTIONS] <SUBCOMMAND>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
SUBCOMMANDS:
|
2020-01-20 22:06:47 -08:00
|
|
|
account Show the contents of an account
|
2019-12-19 14:37:47 -08:00
|
|
|
address Get your public key
|
|
|
|
airdrop Request lamports
|
2019-12-30 10:13:56 -08:00
|
|
|
authorize-nonce-account Assign account authority to a new entity
|
2019-12-19 14:37:47 -08:00
|
|
|
balance Get your balance
|
2020-01-20 22:06:47 -08:00
|
|
|
block-production Show information about block production
|
|
|
|
block-time Get estimated production time of a block
|
2019-12-19 14:37:47 -08:00
|
|
|
cancel Cancel a transfer
|
|
|
|
catchup Wait for a validator to catch up to the cluster
|
|
|
|
claim-storage-reward Redeem storage reward credits
|
|
|
|
cluster-version Get the version of the cluster entrypoint
|
2020-01-20 22:06:47 -08:00
|
|
|
config Solana command-line tool configuration settings
|
2019-12-19 14:37:47 -08:00
|
|
|
confirm Confirm transaction by signature
|
|
|
|
create-address-with-seed Generate a dervied account address with a seed
|
|
|
|
create-archiver-storage-account Create an archiver storage account
|
|
|
|
create-nonce-account Create a nonce account
|
|
|
|
create-stake-account Create a stake account
|
|
|
|
create-validator-storage-account Create a validator storage account
|
|
|
|
create-vote-account Create a vote account
|
|
|
|
deactivate-stake Deactivate the delegated stake from the stake account
|
|
|
|
delegate-stake Delegate stake to a vote account
|
|
|
|
deploy Deploy a program
|
2020-01-20 22:06:47 -08:00
|
|
|
epoch-info Get information about the current epoch
|
2019-12-19 14:37:47 -08:00
|
|
|
fees Display current cluster fees
|
2020-01-20 22:06:47 -08:00
|
|
|
genesis-hash Get the genesis hash
|
|
|
|
gossip Show the current gossip network nodes
|
2019-12-19 14:37:47 -08:00
|
|
|
help Prints this message or the help of the given subcommand(s)
|
|
|
|
new-nonce Generate a new nonce, rendering the existing nonce useless
|
2020-01-20 22:06:47 -08:00
|
|
|
nonce Get the current nonce value
|
|
|
|
nonce-account Show the contents of a nonce account
|
2019-12-19 14:37:47 -08:00
|
|
|
pay Send a payment
|
|
|
|
ping Submit transactions sequentially
|
|
|
|
redeem-vote-credits Redeem credits in the stake account
|
|
|
|
send-signature Send a signature to authorize a transfer
|
|
|
|
send-timestamp Send a timestamp to unlock a transfer
|
2020-01-20 22:06:47 -08:00
|
|
|
slot Get current slot
|
|
|
|
stake-account Show the contents of a stake account
|
2019-12-19 14:37:47 -08:00
|
|
|
stake-authorize-staker Authorize a new stake signing keypair for the given stake account
|
|
|
|
stake-authorize-withdrawer Authorize a new withdraw signing keypair for the given stake account
|
2020-01-20 22:06:47 -08:00
|
|
|
stake-history Show the stake history
|
2020-01-21 07:58:29 -08:00
|
|
|
stakes Show stake account information
|
2020-01-20 22:06:47 -08:00
|
|
|
storage-account Show the contents of a storage account
|
|
|
|
transaction-count Get current transaction count
|
2019-12-19 14:37:47 -08:00
|
|
|
uptime Show the uptime of a validator, based on epoch voting history
|
|
|
|
validator-info Publish/get Validator info on Solana
|
2020-01-21 07:58:29 -08:00
|
|
|
validators Show summary information about the current validators
|
2020-01-20 22:06:47 -08:00
|
|
|
vote-account Show the contents of a vote account
|
2019-12-19 14:37:47 -08:00
|
|
|
vote-authorize-voter Authorize a new vote signing keypair for the given vote account
|
|
|
|
vote-authorize-withdrawer Authorize a new withdraw signing keypair for the given vote account
|
|
|
|
vote-update-validator Update the vote account's validator identity
|
|
|
|
withdraw-from-nonce-account Withdraw lamports from the nonce account
|
|
|
|
withdraw-stake Withdraw the unstaked lamports from the stake account
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-account
|
|
|
|
```text
|
|
|
|
solana-account
|
|
|
|
Show the contents of an account
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana account [FLAGS] [OPTIONS] <ACCOUNT PUBKEY>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--lamports Display balance in lamports instead of SOL
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
-o, --output <FILE> Write the account data to this file
|
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<ACCOUNT PUBKEY> Account pubkey
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-address
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-address
|
2018-11-08 14:42:20 -08:00
|
|
|
Get your public key
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana address [FLAGS] [OPTIONS]
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-airdrop
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-airdrop
|
2019-09-29 21:18:15 -07:00
|
|
|
Request lamports
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana airdrop [FLAGS] [OPTIONS] <AMOUNT> [UNIT]
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-10 16:16:40 -07:00
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
--faucet-host <HOST> Faucet host to use [default: the --url host]
|
|
|
|
--faucet-port <PORT> Faucet port to use [default: 9900]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2018-11-08 14:42:20 -08:00
|
|
|
ARGS:
|
2019-09-10 16:16:40 -07:00
|
|
|
<AMOUNT> The airdrop amount to request (default unit SOL)
|
2019-09-29 21:18:15 -07:00
|
|
|
<UNIT> Specify unit to use for request and balance display [possible values: SOL, lamports]
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-12-30 10:13:56 -08:00
|
|
|
#### solana-authorize-nonce-account
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-authorize-nonce-account
|
2019-12-30 10:13:56 -08:00
|
|
|
Assign account authority to a new entity
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana authorize-nonce-account [FLAGS] [OPTIONS] <NONCE_ACCOUNT> <NEW_AUTHORITY_PUBKEY>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--seed <SEED STRING>
|
|
|
|
Seed for address generation; if specified, the resulting account will be at a derived address of the
|
|
|
|
NONCE_ACCOUNT pubkey
|
2019-12-30 10:13:56 -08:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<NONCE_ACCOUNT> Address of the nonce account
|
|
|
|
<NEW_AUTHORITY_PUBKEY> Account to be granted authority of the nonce account
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-balance
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-balance
|
2019-09-10 16:16:40 -07:00
|
|
|
Get your balance
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana balance [FLAGS] [OPTIONS] [PUBKEY]
|
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--lamports Display balance in lamports instead of SOL
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<PUBKEY> The public key of the balance to check
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-block-production
|
|
|
|
```text
|
|
|
|
solana-block-production
|
|
|
|
Show information about block production
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana block-production [FLAGS] [OPTIONS]
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
--epoch <epoch> Epoch to show block production for [default: current epoch]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--slot-limit <slot_limit> Limit results to this many slots from the end of the epoch [default: full
|
|
|
|
epoch]
|
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-block-time
|
|
|
|
```text
|
|
|
|
solana-block-time
|
|
|
|
Get estimated production time of a block
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana block-time [FLAGS] [OPTIONS] <SLOT>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<SLOT> Slot number of the block to query
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-cancel
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-cancel
|
2018-11-08 14:42:20 -08:00
|
|
|
Cancel a transfer
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana cancel [FLAGS] [OPTIONS] <PROCESS ID>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<PROCESS ID> The process id of the transfer to cancel
|
|
|
|
```
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
#### solana-catchup
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-catchup
|
2019-12-19 14:37:47 -08:00
|
|
|
Wait for a validator to catch up to the cluster
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana catchup [FLAGS] [OPTIONS] <PUBKEY>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<PUBKEY> Identity pubkey of the validator
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-claim-storage-reward
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-claim-storage-reward
|
2019-09-10 16:16:40 -07:00
|
|
|
Redeem storage reward credits
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana claim-storage-reward [FLAGS] [OPTIONS] <NODE PUBKEY> <STORAGE ACCOUNT PUBKEY>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-10 16:16:40 -07:00
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2018-11-08 14:42:20 -08:00
|
|
|
ARGS:
|
2019-09-10 16:16:40 -07:00
|
|
|
<NODE PUBKEY> The node account to credit the rewards to
|
|
|
|
<STORAGE ACCOUNT PUBKEY> Storage account address to redeem credits for
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-cluster-version
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-cluster-version
|
2019-09-10 16:16:40 -07:00
|
|
|
Get the version of the cluster entrypoint
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana cluster-version [FLAGS] [OPTIONS]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-config
|
|
|
|
```text
|
|
|
|
solana-config
|
|
|
|
Solana command-line tool configuration settings
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana config [FLAGS] [OPTIONS] <SUBCOMMAND>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
SUBCOMMANDS:
|
|
|
|
get Get current config settings
|
|
|
|
help Prints this message or the help of the given subcommand(s)
|
|
|
|
set Set a config setting
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-confirm
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-confirm
|
2018-11-08 14:42:20 -08:00
|
|
|
Confirm transaction by signature
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana confirm [FLAGS] [OPTIONS] <SIGNATURE>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-10 16:16:40 -07:00
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2018-11-08 14:42:20 -08:00
|
|
|
ARGS:
|
|
|
|
<SIGNATURE> The transaction signature to confirm
|
|
|
|
```
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
#### solana-create-address-with-seed
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-address-with-seed
|
2019-12-19 14:37:47 -08:00
|
|
|
Generate a dervied account address with a seed
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana create-address-with-seed [FLAGS] [OPTIONS] <SEED_STRING> <PROGRAM_ID>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
--from <PUBKEY> From (base) key, defaults to client keypair.
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
<SEED_STRING> The seed. Must not take more than 32 bytes to encode as utf-8
|
2020-01-21 07:58:29 -08:00
|
|
|
<PROGRAM_ID> The program_id that the address will ultimately be used for,
|
|
|
|
or one of STAKE, VOTE, and STORAGE keywords
|
2019-09-29 21:18:15 -07:00
|
|
|
```
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
#### solana-create-archiver-storage-account
|
2019-09-29 21:18:15 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-archiver-storage-account
|
2019-12-19 14:37:47 -08:00
|
|
|
Create an archiver storage account
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana create-archiver-storage-account [FLAGS] [OPTIONS] <STORAGE ACCOUNT OWNER PUBKEY> <STORAGE ACCOUNT>
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-09-29 21:18:15 -07:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
2019-10-04 15:13:21 -07:00
|
|
|
~/.config/solana/cli/config.yml]
|
2019-09-29 21:18:15 -07:00
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<STORAGE ACCOUNT OWNER PUBKEY>
|
|
|
|
<STORAGE ACCOUNT>
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-create-nonce-account
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-nonce-account
|
2019-12-19 14:37:47 -08:00
|
|
|
Create a nonce account
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana create-nonce-account [FLAGS] [OPTIONS] <NONCE ACCOUNT> <AMOUNT> [UNIT]
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce-authority <BASE58_PUBKEY> Assign noncing authority to another entity
|
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<NONCE ACCOUNT> Keypair of the nonce account to fund
|
|
|
|
<AMOUNT> The amount to load the nonce account with (default unit SOL)
|
|
|
|
<UNIT> Specify unit to use for request [possible values: SOL, lamports]
|
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-create-stake-account
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-stake-account
|
2019-12-19 14:37:47 -08:00
|
|
|
Create a stake account
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana create-stake-account [FLAGS] [OPTIONS] <STAKE ACCOUNT> <AMOUNT> [UNIT]
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
--custodian <PUBKEY> Identity of the custodian (can withdraw before lockup expires)
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--lockup-date <RFC3339 DATE TIME> The date and time at which this account will be available for withdrawal
|
|
|
|
--lockup-epoch <EPOCH> The epoch height at which this account will be available for withdrawal
|
2020-01-21 07:58:29 -08:00
|
|
|
--seed <SEED STRING> Seed for address generation; if specified, the resulting account will be at
|
|
|
|
a derived address of the STAKE ACCOUNT pubkey
|
|
|
|
--stake-authority <PUBKEY> Public key of authorized staker (defaults to cli config pubkey)
|
|
|
|
--withdraw-authority <PUBKEY> Public key of authorized withdrawer (defaults to cli config pubkey)
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<STAKE ACCOUNT> Keypair of the stake account to fund
|
2019-09-29 21:18:15 -07:00
|
|
|
<AMOUNT> The amount of send to the vote account (default unit SOL)
|
|
|
|
<UNIT> Specify unit to use for request [possible values: SOL, lamports]
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-create-validator-storage-account
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-validator-storage-account
|
2019-09-10 16:16:40 -07:00
|
|
|
Create a validator storage account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana create-validator-storage-account [FLAGS] [OPTIONS] <STORAGE ACCOUNT OWNER PUBKEY> <STORAGE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<STORAGE ACCOUNT OWNER PUBKEY>
|
|
|
|
<STORAGE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-create-vote-account
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-create-vote-account
|
2019-09-10 16:16:40 -07:00
|
|
|
Create a vote account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana create-vote-account [FLAGS] [OPTIONS] <VOTE ACCOUNT KEYPAIR> <VALIDATOR IDENTITY PUBKEY>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-09-29 21:18:15 -07:00
|
|
|
--authorized-voter <PUBKEY> Public key of the authorized voter (defaults to vote account)
|
2019-10-04 15:13:21 -07:00
|
|
|
--authorized-withdrawer <PUBKEY> Public key of the authorized withdrawer (defaults to cli config pubkey)
|
2020-01-21 07:58:29 -08:00
|
|
|
--commission <NUM> The commission taken on reward redemption (0-100) [default: 100]
|
2019-09-29 21:18:15 -07:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
2019-10-04 15:13:21 -07:00
|
|
|
~/.config/solana/cli/config.yml]
|
2019-09-29 21:18:15 -07:00
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2020-01-21 07:58:29 -08:00
|
|
|
--seed <SEED STRING> Seed for address generation; if specified, the resulting account will be at
|
|
|
|
a derived address of the VOTE ACCOUNT pubkey
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
<VOTE ACCOUNT KEYPAIR> Vote account keypair to fund
|
|
|
|
<VALIDATOR IDENTITY PUBKEY> Validator that will vote with this account
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-deactivate-stake
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-deactivate-stake
|
2019-09-10 16:16:40 -07:00
|
|
|
Deactivate the delegated stake from the stake account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana deactivate-stake [FLAGS] [OPTIONS] <STAKE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--sign-only Sign the transaction offline
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
--blockhash <BLOCKHASH> Use the supplied blockhash
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce <PUBKEY>
|
|
|
|
Provide the nonce account to use when creating a nonced
|
|
|
|
transaction. Nonced transactions are useful when a transaction
|
|
|
|
requires a lengthy signing process. Learn more about nonced
|
|
|
|
transactions at https://docs.solana.com/offline-signing/durable-nonce
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--signer <PUBKEY=BASE58_SIG>... Provide a public-key/signature pair for the transaction
|
|
|
|
--stake-authority <KEYPAIR of PUBKEY> Public key of authorized staker (defaults to cli config pubkey)
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<STAKE ACCOUNT> Stake account to be deactivated.
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-delegate-stake
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-delegate-stake
|
2019-09-10 16:16:40 -07:00
|
|
|
Delegate stake to a vote account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana delegate-stake [FLAGS] [OPTIONS] <STAKE ACCOUNT> <VOTE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--sign-only Sign the transaction offline
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
--blockhash <BLOCKHASH> Use the supplied blockhash
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce <PUBKEY>
|
|
|
|
Provide the nonce account to use when creating a nonced
|
|
|
|
transaction. Nonced transactions are useful when a transaction
|
|
|
|
requires a lengthy signing process. Learn more about nonced
|
|
|
|
transactions at https://docs.solana.com/offline-signing/durable-nonce
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--signer <PUBKEY=BASE58_SIG>... Provide a public-key/signature pair for the transaction
|
|
|
|
--stake-authority <KEYPAIR of PUBKEY> Public key of authorized staker (defaults to cli config pubkey)
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<STAKE ACCOUNT> Stake account to delegate
|
|
|
|
<VOTE ACCOUNT> The vote account to which the stake will be delegated
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-deploy
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-deploy
|
2018-11-08 14:42:20 -08:00
|
|
|
Deploy a program
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana deploy [FLAGS] [OPTIONS] <PATH TO BPF PROGRAM>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-10 16:16:40 -07:00
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2018-11-08 14:42:20 -08:00
|
|
|
ARGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
<PATH TO BPF PROGRAM> /path/to/program.o
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-epoch-info
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-epoch-info
|
|
|
|
Get information about the current epoch
|
2019-06-07 13:11:56 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana epoch-info [FLAGS] [OPTIONS]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--confirmed Return information at maximum-lockout commitment level
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-fees
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-fees
|
|
|
|
Display current cluster fees
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana fees [FLAGS] [OPTIONS]
|
2019-06-07 13:11:56 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-genesis-hash
|
2019-12-19 14:37:47 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-genesis-hash
|
|
|
|
Get the genesis hash
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana genesis-hash [FLAGS] [OPTIONS]
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-gossip
|
2019-10-04 15:13:21 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-gossip
|
|
|
|
Show the current gossip network nodes
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana gossip [FLAGS] [OPTIONS]
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-10-04 15:13:21 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-help
|
2019-10-04 15:13:21 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-help
|
|
|
|
Prints this message or the help of the given subcommand(s)
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana help [subcommand]...
|
2019-12-19 14:37:47 -08:00
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
ARGS:
|
|
|
|
<subcommand>... The subcommand whose help message to display
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-new-nonce
|
2019-12-19 14:37:47 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-new-nonce
|
|
|
|
Generate a new nonce, rendering the existing nonce useless
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana new-nonce [FLAGS] [OPTIONS] <NONCE ACCOUNT>
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-10-04 15:13:21 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<NONCE ACCOUNT> Address of the nonce account
|
2019-06-07 13:11:56 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-nonce
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-nonce
|
|
|
|
Get the current nonce value
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana nonce [FLAGS] [OPTIONS] <NONCE ACCOUNT>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<NONCE ACCOUNT> Address of the nonce account to display
|
2019-09-29 21:18:15 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-nonce-account
|
2019-12-19 14:37:47 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-nonce-account
|
|
|
|
Show the contents of a nonce account
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana nonce-account [FLAGS] [OPTIONS] <NONCE ACCOUNT>
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
2020-01-21 07:58:29 -08:00
|
|
|
--lamports Display balance in lamports instead of SOL
|
2019-12-19 14:37:47 -08:00
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<NONCE ACCOUNT> Address of the nonce account to display
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-pay
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-pay
|
2018-11-08 14:42:20 -08:00
|
|
|
Send a payment
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana pay [FLAGS] [OPTIONS] <TO PUBKEY> <AMOUNT> [--] [UNIT]
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--cancelable
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--sign-only Sign the transaction offline
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
--blockhash <BLOCKHASH> Use the supplied blockhash
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce <PUBKEY>
|
|
|
|
Provide the nonce account to use when creating a nonced
|
|
|
|
transaction. Nonced transactions are useful when a transaction
|
|
|
|
requires a lengthy signing process. Learn more about nonced
|
|
|
|
transactions at https://docs.solana.com/offline-signing/durable-nonce
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--signer <PUBKEY=BASE58_SIG>... Provide a public-key/signature pair for the transaction
|
|
|
|
--after <DATETIME> A timestamp after which transaction will execute
|
|
|
|
--require-timestamp-from <PUBKEY> Require timestamp from this third party
|
|
|
|
--require-signature-from <PUBKEY>... Any third party signatures required to unlock the lamports
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
ARGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
<TO PUBKEY> The pubkey of recipient
|
|
|
|
<AMOUNT> The amount to send (default unit SOL)
|
|
|
|
<UNIT> Specify unit to use for request [possible values: SOL, lamports]
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-ping
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-ping
|
2019-09-10 16:16:40 -07:00
|
|
|
Submit transactions sequentially
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana ping [FLAGS] [OPTIONS]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
--confirmed Wait until the transaction is confirmed at maximum-lockout commitment level
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-c, --count <NUMBER> Stop after submitting count transactions
|
|
|
|
-i, --interval <SECONDS> Wait interval seconds between submitting the next transaction [default: 2]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--lamports <NUMBER> Number of lamports to transfer for each transaction [default: 1]
|
|
|
|
-t, --timeout <SECONDS> Wait up to timeout seconds for transaction confirmation [default: 15]
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-redeem-vote-credits
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-redeem-vote-credits
|
2019-09-10 16:16:40 -07:00
|
|
|
Redeem credits in the stake account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana redeem-vote-credits [FLAGS] [OPTIONS] <STAKE ACCOUNT> <VOTE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<STAKE ACCOUNT> Address of the stake account in which to redeem credits
|
|
|
|
<VOTE ACCOUNT> The vote account to which the stake is currently delegated.
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-send-signature
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-send-signature
|
2018-11-08 14:42:20 -08:00
|
|
|
Send a signature to authorize a transfer
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana send-signature [FLAGS] [OPTIONS] <PUBKEY> <PROCESS ID>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
2019-09-10 16:16:40 -07:00
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2018-11-08 14:42:20 -08:00
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<PUBKEY> The pubkey of recipient
|
2019-09-10 16:16:40 -07:00
|
|
|
<PROCESS ID> The process id of the transfer to authorize
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-send-timestamp
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-send-timestamp
|
2018-11-08 14:42:20 -08:00
|
|
|
Send a timestamp to unlock a transfer
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana send-timestamp [FLAGS] [OPTIONS] <PUBKEY> <PROCESS ID>
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
--date <DATETIME> Optional arbitrary timestamp to apply
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2018-11-08 14:42:20 -08:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<PUBKEY> The pubkey of recipient
|
2019-09-10 16:16:40 -07:00
|
|
|
<PROCESS ID> The process id of the transfer to unlock
|
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-slot
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-slot
|
|
|
|
Get current slot
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana slot [FLAGS] [OPTIONS]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--confirmed Return slot at maximum-lockout commitment level
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-stake-account
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-stake-account
|
|
|
|
Show the contents of a stake account
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana stake-account [FLAGS] [OPTIONS] <STAKE ACCOUNT>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--lamports Display balance in lamports instead of SOL
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<STAKE ACCOUNT> Address of the stake account to display
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-stake-authorize-staker
|
2019-12-31 09:26:45 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-stake-authorize-staker
|
|
|
|
Authorize a new stake signing keypair for the given stake account
|
2019-12-31 09:26:45 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana stake-authorize-staker [FLAGS] [OPTIONS] <STAKE ACCOUNT> <AUTHORIZE PUBKEY>
|
2019-12-31 09:26:45 -08:00
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
2020-01-21 07:58:29 -08:00
|
|
|
--sign-only Sign the transaction offline
|
2019-12-31 09:26:45 -08:00
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
--blockhash <BLOCKHASH> Use the supplied blockhash
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce <PUBKEY>
|
|
|
|
Provide the nonce account to use when creating a nonced
|
|
|
|
transaction. Nonced transactions are useful when a transaction
|
|
|
|
requires a lengthy signing process. Learn more about nonced
|
|
|
|
transactions at https://docs.solana.com/offline-signing/durable-nonce
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--signer <PUBKEY=BASE58_SIG>... Provide a public-key/signature pair for the transaction
|
|
|
|
--stake-authority <KEYPAIR of PUBKEY> Public key of authorized staker (defaults to cli config pubkey)
|
2019-12-19 14:37:47 -08:00
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
ARGS:
|
|
|
|
<STAKE ACCOUNT> Stake account in which to set the authorized staker
|
|
|
|
<AUTHORIZE PUBKEY> New authorized staker
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-stake-authorize-withdrawer
|
2019-12-19 14:37:47 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-stake-authorize-withdrawer
|
|
|
|
Authorize a new withdraw signing keypair for the given stake account
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana stake-authorize-withdrawer [FLAGS] [OPTIONS] <STAKE ACCOUNT> <AUTHORIZE PUBKEY>
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
2020-01-21 07:58:29 -08:00
|
|
|
--sign-only Sign the transaction offline
|
2019-12-19 14:37:47 -08:00
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
--blockhash <BLOCKHASH> Use the supplied blockhash
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce <PUBKEY>
|
|
|
|
Provide the nonce account to use when creating a nonced
|
|
|
|
transaction. Nonced transactions are useful when a transaction
|
|
|
|
requires a lengthy signing process. Learn more about nonced
|
|
|
|
transactions at https://docs.solana.com/offline-signing/durable-nonce
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
|
|
|
--signer <PUBKEY=BASE58_SIG>... Provide a public-key/signature pair for the transaction
|
|
|
|
--withdraw-authority <KEYPAIR or PUBKEY> Public key of authorized withdrawer (defaults to cli config pubkey)
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
ARGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
<STAKE ACCOUNT> Stake account in which to set the authorized withdrawer
|
|
|
|
<AUTHORIZE PUBKEY> New authorized withdrawer
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-stake-history
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-stake-history
|
|
|
|
Show the stake history
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana stake-history [FLAGS] [OPTIONS]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--lamports Display balance in lamports instead of SOL
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-stakes
|
2019-12-19 14:37:47 -08:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-stakes
|
|
|
|
Show stake account information
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana stakes [FLAGS] [OPTIONS] [VOTE ACCOUNT PUBKEYS]...
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--lamports Display balance in lamports instead of SOL
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2020-01-21 07:58:29 -08:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEYS>... Only show stake accounts delegated to the provided vote accounts
|
2019-12-19 14:37:47 -08:00
|
|
|
```
|
|
|
|
|
2020-01-20 22:06:47 -08:00
|
|
|
#### solana-storage-account
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-storage-account
|
2019-09-10 16:16:40 -07:00
|
|
|
Show the contents of a storage account
|
|
|
|
|
|
|
|
USAGE:
|
2020-01-20 22:06:47 -08:00
|
|
|
solana storage-account [FLAGS] [OPTIONS] <STORAGE ACCOUNT PUBKEY>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<STORAGE ACCOUNT PUBKEY> Storage account pubkey
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-transaction-count
|
2019-10-14 23:04:15 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-transaction-count
|
|
|
|
Get current transaction count
|
2019-10-14 23:04:15 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana transaction-count [FLAGS] [OPTIONS]
|
2019-10-08 16:35:34 -07:00
|
|
|
|
2019-10-14 23:04:15 -07:00
|
|
|
FLAGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--confirmed Return count at maximum-lockout commitment level
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-10-14 23:04:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-10-14 23:04:15 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-uptime
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-uptime
|
|
|
|
Show the uptime of a validator, based on epoch voting history
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana uptime [FLAGS] [OPTIONS] <VOTE ACCOUNT PUBKEY>
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--aggregate Aggregate uptime data across span
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2020-01-21 07:58:29 -08:00
|
|
|
--span <NUM OF EPOCHS> Number of recent epochs to examine
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEY> Vote account pubkey
|
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-validator-info
|
2019-09-29 21:18:15 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-validator-info
|
|
|
|
Publish/get Validator info on Solana
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana validator-info [FLAGS] [OPTIONS] <SUBCOMMAND>
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-10 16:16:40 -07:00
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
SUBCOMMANDS:
|
|
|
|
get Get and parse Solana Validator info
|
|
|
|
help Prints this message or the help of the given subcommand(s)
|
|
|
|
publish Publish Validator info on Solana
|
2019-09-10 16:16:40 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-validators
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-validators
|
|
|
|
Show summary information about the current validators
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana validators [FLAGS] [OPTIONS]
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
2020-01-21 07:58:29 -08:00
|
|
|
--lamports Display balance in lamports instead of SOL
|
2019-12-19 14:37:47 -08:00
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-29 21:18:15 -07:00
|
|
|
```
|
|
|
|
|
2020-01-21 07:58:29 -08:00
|
|
|
#### solana-vote-account
|
2019-09-29 21:18:15 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-vote-account
|
|
|
|
Show the contents of a vote account
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
USAGE:
|
2020-01-21 07:58:29 -08:00
|
|
|
solana vote-account [FLAGS] [OPTIONS] <VOTE ACCOUNT PUBKEY>
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
2020-01-21 07:58:29 -08:00
|
|
|
--lamports Display balance in lamports instead of SOL
|
2019-12-19 14:37:47 -08:00
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEY> Vote account pubkey
|
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-vote-authorize-voter
|
2019-09-22 20:38:34 -07:00
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-vote-authorize-voter
|
2019-09-29 21:18:15 -07:00
|
|
|
Authorize a new vote signing keypair for the given vote account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana vote-authorize-voter [FLAGS] [OPTIONS] <VOTE ACCOUNT PUBKEY> <NEW VOTER PUBKEY>
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEY> Vote account in which to set the authorized voter
|
|
|
|
<NEW VOTER PUBKEY> New vote signer to authorize
|
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-vote-authorize-withdrawer
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-vote-authorize-withdrawer
|
2019-09-29 21:18:15 -07:00
|
|
|
Authorize a new withdraw signing keypair for the given vote account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana vote-authorize-withdrawer [FLAGS] [OPTIONS] <VOTE ACCOUNT PUBKEY> <NEW WITHDRAWER PUBKEY>
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
2019-09-29 21:18:15 -07:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEY> Vote account in which to set the authorized withdrawer
|
|
|
|
<NEW WITHDRAWER PUBKEY> New withdrawer to authorize
|
|
|
|
```
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
#### solana-vote-update-validator
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-vote-update-validator
|
2019-12-19 14:37:47 -08:00
|
|
|
Update the vote account's validator identity
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana vote-update-validator [FLAGS] [OPTIONS] <VOTE ACCOUNT PUBKEY> <NEW VALIDATOR IDENTITY PUBKEY> <AUTHORIZED VOTER KEYPAIR>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-21 07:58:29 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME> Recover a keypair using a seed phrase and optional passphrase [possible
|
|
|
|
values: keypair]
|
2019-12-19 14:37:47 -08:00
|
|
|
-C, --config <PATH> Configuration file to use [default:
|
|
|
|
~/.config/solana/cli/config.yml]
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<VOTE ACCOUNT PUBKEY> Vote account to update
|
|
|
|
<NEW VALIDATOR IDENTITY PUBKEY> New validator that will vote with this account
|
|
|
|
<AUTHORIZED VOTER KEYPAIR> Authorized voter keypair
|
|
|
|
```
|
|
|
|
|
|
|
|
#### solana-withdraw-from-nonce-account
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-withdraw-from-nonce-account
|
2019-12-19 14:37:47 -08:00
|
|
|
Withdraw lamports from the nonce account
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
solana withdraw-from-nonce-account [FLAGS] [OPTIONS] <NONCE ACCOUNT> <DESTINATION ACCOUNT> <AMOUNT> [UNIT]
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--nonce-authority <KEYPAIR or PUBKEY>
|
|
|
|
Provide the nonce authority keypair to use when signing a nonced transaction
|
|
|
|
|
2019-12-19 14:37:47 -08:00
|
|
|
|
|
|
|
ARGS:
|
|
|
|
<NONCE ACCOUNT> Nonce account from to withdraw from
|
|
|
|
<DESTINATION ACCOUNT> The account to which the lamports should be transferred
|
|
|
|
<AMOUNT> The amount to withdraw from the nonce account (default unit SOL)
|
|
|
|
<UNIT> Specify unit to use for request [possible values: SOL, lamports]
|
|
|
|
```
|
|
|
|
|
2019-09-29 21:18:15 -07:00
|
|
|
#### solana-withdraw-stake
|
|
|
|
```text
|
2020-01-21 07:58:29 -08:00
|
|
|
solana-withdraw-stake
|
2019-09-10 16:16:40 -07:00
|
|
|
Withdraw the unstaked lamports from the stake account
|
|
|
|
|
|
|
|
USAGE:
|
2019-12-19 14:37:47 -08:00
|
|
|
solana withdraw-stake [FLAGS] [OPTIONS] <STAKE ACCOUNT> <DESTINATION ACCOUNT> <AMOUNT> [UNIT]
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
FLAGS:
|
2019-12-19 14:37:47 -08:00
|
|
|
-h, --help Prints help information
|
|
|
|
--skip-seed-phrase-validation Skip validation of seed phrases. Use this if your phrase does not use the BIP39
|
|
|
|
official English word list
|
|
|
|
-V, --version Prints version information
|
|
|
|
-v, --verbose Show extra information header
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
OPTIONS:
|
2020-01-22 11:19:07 -08:00
|
|
|
--ask-seed-phrase <KEYPAIR NAME>
|
|
|
|
Recover a keypair using a seed phrase and optional passphrase [possible values: keypair]
|
|
|
|
|
|
|
|
-C, --config <PATH>
|
|
|
|
Configuration file to use [default: ~/.config/solana/cli/config.yml]
|
|
|
|
|
|
|
|
-u, --url <URL> JSON RPC URL for the solana cluster
|
|
|
|
-k, --keypair <PATH> /path/to/id.json
|
|
|
|
--withdraw-authority <KEYPAIR or PUBKEY> Public key of authorized withdrawer (defaults to cli config pubkey)
|
2019-09-10 16:16:40 -07:00
|
|
|
|
|
|
|
ARGS:
|
2019-09-29 21:18:15 -07:00
|
|
|
<STAKE ACCOUNT> Stake account from which to withdraw
|
2019-12-19 14:37:47 -08:00
|
|
|
<DESTINATION ACCOUNT> The account to which the lamports should be transferred
|
2019-09-29 21:18:15 -07:00
|
|
|
<AMOUNT> The amount to withdraw from the stake account (default unit SOL)
|
|
|
|
<UNIT> Specify unit to use for request [possible values: SOL, lamports]
|
2018-11-08 14:42:20 -08:00
|
|
|
```
|
2019-12-19 14:37:47 -08:00
|
|
|
|