@switchboard-xyz/cli v3.5.12
Install
Run the following command to install the sb
binary in your $PATH.
npm install -g @switchboard-xyz/cli
You can re-run this command to upgrade your CLI version or run the command:
sb update stable
Setup
Solana
# Devnet
sb config set solana devnet rpc https://api.devnet.solana.com
sb config set solana devnet default-account "~/.config/solana/id.json"
# Mainnet
sb config set solana mainnet-beta rpc https://api.mainnet-beta.solana.com
sb config set solana mainnet-beta default-account "~/.config/solana/id.json"
Testing
To test commands:
node bin/dev print GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR
# node bin/dev [COMMAND ARGS --flags]
Commands
sb config print
sb config set CHAIN NETWORK PARAMETER [VALUE]
sb help [COMMANDS]
sb solana on-demand feed print FEEDKEY
sb solana on-demand guardian create
sb solana on-demand guardian register
sb solana on-demand oracle create
sb solana on-demand oracle print ORACLEKEY
sb solana on-demand oracle resetLut
sb solana on-demand oracle setOperator [ORACLE]
sb solana on-demand permission set
sb solana on-demand queue addMrEnclave [QUEUE]
sb solana on-demand queue allowSubsidy [QUEUE]
sb solana on-demand queue configure [QUEUE]
sb solana on-demand queue init
sb solana on-demand queue print QUEUE
sb solana on-demand queue resetLut
sb solana on-demand queue rmMrEnclave [QUEUE]
sb solana on-demand queue rmOracle QUEUE
sb solana on-demand queue setNcn [QUEUE]
sb solana on-demand queue setVault [QUEUE]
sb solana on-demand stake unwrap-delegation-pool
sb solana on-demand state configure
sb solana on-demand state price-whitelist
sb solana on-demand state print
sb solana secrets add-mrenclave
sb solana secrets create SECRETNAME
sb solana secrets delete SECRETNAME
sb solana secrets print
sb update [CHANNEL]
sb version
sb config print
print cli config
USAGE
$ sb config print [-h] [-v] [-s]
FLAGS
-h, --help Show CLI help.
-s, --silent suppress cli prompts
-v, --verbose log everything
DESCRIPTION
print cli config
EXAMPLES
$ sb config:print
See code: dist/commands/config/print.js
sb config set CHAIN NETWORK PARAMETER [VALUE]
set a configuration option
USAGE
$ sb config set CHAIN NETWORK PARAMETER [VALUE] [-h] [-v] [-s] [-r]
ARGUMENTS
CHAIN chain to set a config parameter
NETWORK network of chain to set parameter
PARAMETER (rpc|default-account|account) parameter to set
VALUE value of the param to set
FLAGS
-h, --help Show CLI help.
-r, --reset remove value or set to default rpc
-s, --silent suppress cli prompts
-v, --verbose log everything
DESCRIPTION
set a configuration option
See code: dist/commands/config/set.js
sb help [COMMANDS]
Display help for sb.
USAGE
$ sb help [COMMANDS] [-n]
ARGUMENTS
COMMANDS Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for sb.
See code: @oclif/plugin-help
sb solana on-demand feed print FEEDKEY
print a feed account
USAGE
$ sb solana on-demand feed print FEEDKEY [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed]
ARGUMENTS
FEEDKEY public key of the feed account
FLAGS
-h, --help Show CLI help.
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--mainnetBeta WARNING: use mainnet-beta solana cluster
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
print a feed account
See code: dist/commands/solana/on-demand/feed/print.js
sb solana on-demand guardian create
Create a guardian account
USAGE
$ sb solana on-demand guardian create [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value>
--ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Create a guardian account
See code: dist/commands/solana/on-demand/guardian/create.js
sb solana on-demand guardian register
register or deregister a guardian on a queue
USAGE
$ sb solana on-demand guardian register --guardian <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>] [--disable]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--disable disable the specified guardian
--guardian=<value> (required) new guardian account to register
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
register or deregister a guardian on a queue
See code: dist/commands/solana/on-demand/guardian/register.js
sb solana on-demand oracle create
Create an oracle account
USAGE
$ sb solana on-demand oracle create --queue <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--queue=<value> (required) public key of the queue account
DESCRIPTION
Create an oracle account
See code: dist/commands/solana/on-demand/oracle/create.js
sb solana on-demand oracle print ORACLEKEY
print a oracle account
USAGE
$ sb solana on-demand oracle print ORACLEKEY [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed]
ARGUMENTS
ORACLEKEY public key of the oracle account
FLAGS
-h, --help Show CLI help.
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--mainnetBeta WARNING: use mainnet-beta solana cluster
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
print a oracle account
See code: dist/commands/solana/on-demand/oracle/print.js
sb solana on-demand oracle resetLut
Reset lut of oracle account
USAGE
$ sb solana on-demand oracle resetLut --oracle <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--oracle=<value> (required) public key of the oracle account
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Reset lut of oracle account
See code: dist/commands/solana/on-demand/oracle/resetLut.js
sb solana on-demand oracle setOperator [ORACLE]
Set the NCN operator account for the oracle
USAGE
$ sb solana on-demand oracle setOperator [ORACLE] --operator <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
ARGUMENTS
ORACLE The oracle account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--operator=<value> (required) The jito ncn operator to attach to the oracle
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Set the NCN operator account for the oracle
See code: dist/commands/solana/on-demand/oracle/setOperator.js
sb solana on-demand permission set
set a switchboard on-demand permission
USAGE
$ sb solana on-demand permission set --granter <value> --grantee <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>] [--disable]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--disable disable the specified permission
--grantee=<value> (required) public key of the grantee account
--granter=<value> (required) public key of the granter account
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
set a switchboard on-demand permission
See code: dist/commands/solana/on-demand/permission/set.js
sb solana on-demand queue addMrEnclave [QUEUE]
Add allowed measurement to the queue
USAGE
$ sb solana on-demand queue addMrEnclave [QUEUE] --mrEnclave <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--mrEnclave=<value> (required) Hex encoded mrEnclave
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Add allowed measurement to the queue
See code: dist/commands/solana/on-demand/queue/addMrEnclave.js
sb solana on-demand queue allowSubsidy [QUEUE]
Allow or disallow subsidy for a queue
USAGE
$ sb solana on-demand queue allowSubsidy [QUEUE] --enable [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--enable (required) enable the subsidy
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Allow or disallow subsidy for a queue
See code: dist/commands/solana/on-demand/queue/allowSubsidy.js
sb solana on-demand queue configure [QUEUE]
Configure a queue account
USAGE
$ sb solana on-demand queue configure [QUEUE] [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal]
[--ledgerPath <value> --ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [--authority <value>]
[--reward <value>] [--nodeTimeout <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--authority=<value> new authority for the queue account
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--nodeTimeout=<value> timeout before oracles can be removed from queue
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--reward=<value> new reward for the queue account
DESCRIPTION
Configure a queue account
See code: dist/commands/solana/on-demand/queue/configure.js
sb solana on-demand queue init
Init a queue account
USAGE
$ sb solana on-demand queue init [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value>
--ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [--reward <value>] [--nodeTimeout <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--nodeTimeout=<value> timeout before oracles can be removed from queue
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--reward=<value> reward for the queue account
DESCRIPTION
Init a queue account
See code: dist/commands/solana/on-demand/queue/init.js
sb solana on-demand queue print QUEUE
print a queue account
USAGE
$ sb solana on-demand queue print QUEUE [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed] [--oracles]
ARGUMENTS
QUEUE public key of the queue account
FLAGS
-h, --help Show CLI help.
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--mainnetBeta WARNING: use mainnet-beta solana cluster
--oracles print oracles currently registered on this queue
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
print a queue account
See code: dist/commands/solana/on-demand/queue/print.js
sb solana on-demand queue resetLut
Reset lut of queue account
USAGE
$ sb solana on-demand queue resetLut --queue <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--queue=<value> (required) public key of the queue account
DESCRIPTION
Reset lut of queue account
See code: dist/commands/solana/on-demand/queue/resetLut.js
sb solana on-demand queue rmMrEnclave [QUEUE]
Remove allowed measurement from the queue
USAGE
$ sb solana on-demand queue rmMrEnclave [QUEUE] --mrEnclave <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--mrEnclave=<value> (required) Hex encoded mrEnclave
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Remove allowed measurement from the queue
See code: dist/commands/solana/on-demand/queue/rmMrEnclave.js
sb solana on-demand queue rmOracle QUEUE
Add allowed measurement to the queue
USAGE
$ sb solana on-demand queue rmOracle QUEUE --oracle <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--oracle=<value> (required) oracle key
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Add allowed measurement to the queue
See code: dist/commands/solana/on-demand/queue/rmOracle.js
sb solana on-demand queue setNcn [QUEUE]
Set ncn for queue account
USAGE
$ sb solana on-demand queue setNcn [QUEUE] [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal]
[--ledgerPath <value> --ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [--ncn <value>]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--ncn=<value> The ncn account to set
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
Set ncn for queue account
See code: dist/commands/solana/on-demand/queue/setNcn.js
sb solana on-demand queue setVault [QUEUE]
Set vault for queue account
USAGE
$ sb solana on-demand queue setVault [QUEUE] --vault <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>] [--enable]
ARGUMENTS
QUEUE The queue account to configure
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--enable enable the vault
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--vault=<value> (required) The vault account to set
DESCRIPTION
Set vault for queue account
See code: dist/commands/solana/on-demand/queue/setVault.js
sb solana on-demand stake unwrap-delegation-pool
Close the delegation pools WSOL reward account and unwrap SOL to the oracle authority
USAGE
$ sb solana on-demand stake unwrap-delegation-pool --delegationPool <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>] [--solDestination <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--delegationPool=<value> (required) The delegation pool address to unwrap rewards from
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--solDestination=<value> Optional. Destination account to receive unwrapped SOL. Defaults to the payer.
DESCRIPTION
Close the delegation pools WSOL reward account and unwrap SOL to the oracle authority
See code: dist/commands/solana/on-demand/stake/unwrap-delegation-pool.js
sb solana on-demand state configure
Create an oracle account
USAGE
$ sb solana on-demand state configure [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value>
--ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [--authority <value>] [--guardianQueue
<value>] [--switchMint <value>] [--subsidyAmount <value>] [--permitAdvisory <value>] [--denyAdvisory <value>]
[--testOnlyDisableMrEnclaveCheck] [--addCostWl <value>] [--rmCostWl <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--addCostWl=<value> Feed authority to price whitelist
--asProposal print the transaction as a proposal
--authority=<value> new authority for the state account
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--denyAdvisory=<value> Adds a new denied advisory for oracles
--guardianQueue=<value> guardian queue id
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--permitAdvisory=<value> Adds a new allowed advisory for oracles
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--rmCostWl=<value> Feed authority to remove price whitelist
--subsidyAmount=<value> subsidy amount per epoch
--switchMint=<value> switchboard mint address
--testOnlyDisableMrEnclaveCheck Disables the mr enclave check for testing
DESCRIPTION
Create an oracle account
See code: dist/commands/solana/on-demand/state/configure.js
sb solana on-demand state price-whitelist
Create an oracle account
USAGE
$ sb solana on-demand state price-whitelist [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value>
--ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [--addAuthority <value>] [--rmAuthority
<value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--addAuthority=<value> Feed authority to price whitelist
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--rmAuthority=<value> Feed authority to remove price whitelist
DESCRIPTION
Create an oracle account
See code: dist/commands/solana/on-demand/state/price-whitelist.js
sb solana on-demand state print
print the state account
USAGE
$ sb solana on-demand state print [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed]
FLAGS
-h, --help Show CLI help.
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--mainnetBeta WARNING: use mainnet-beta solana cluster
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
print the state account
See code: dist/commands/solana/on-demand/state/print.js
sb solana secrets add-mrenclave
USAGE
$ sb solana secrets add-mrenclave -m <value> --secret <value> [-h] [-v] [-s] [--mainnetBeta | --cluster
devnet|mainnet-beta|mainnet|localnet] [-u <value>] [--programId <value>] [--commitment
confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value> --ledger] [--priorityFee <value>]
[--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-m, --mrEnclave=<value> (required)
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--secret=<value>... (required) name of the secret(s) to add the MrEnclave measurement to
EXAMPLES
$ sb solana secrets add-mrenclave --mrEnclave a4e00d5ef4d89e046aa134f9930069f261268574b6e7f3e48dad963d86cbbffb --secret FFF_MAINNET_SERVICE_RPC_URL --keypair ~/.config/solana/id.json
See code: dist/commands/solana/secrets/add-mrenclave.js
sb solana secrets create SECRETNAME
creates a switchboard secret
USAGE
$ sb solana secrets create SECRETNAME [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal]
[--ledgerPath <value> --ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>] [-m <value>] [--secret
<value> | --secretFile <value>]
ARGUMENTS
SECRETNAME the name of the secret to create
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-m, --mrEnclave=<value> optional mrEnclave to add to the secret
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
--secret=<value> the value of the secret to create
--secretFile=<value> the file containing the value of the secret to create
DESCRIPTION
creates a switchboard secret
See code: dist/commands/solana/secrets/create.js
sb solana secrets delete SECRETNAME
delete a switchboard secret for a given user
USAGE
$ sb solana secrets delete SECRETNAME [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u
<value>] [--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal]
[--ledgerPath <value> --ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>]
ARGUMENTS
SECRETNAME the name of the secret to create
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
delete a switchboard secret for a given user
See code: dist/commands/solana/secrets/delete.js
sb solana secrets print
print the list of user secrets along with their whitelisted MrEnclaves
USAGE
$ sb solana secrets print [-h] [-v] [-s] [--mainnetBeta | --cluster devnet|mainnet-beta|mainnet|localnet] [-u <value>]
[--programId <value>] [--commitment confirmed|finalized|processed] [-k <value>] [--asProposal] [--ledgerPath <value>
--ledger] [--priorityFee <value>] [--computeUnitLimitMultiple <value>]
FLAGS
-h, --help Show CLI help.
-k, --keypair=<value> keypair that will pay for onchain transactions. defaults to new account authority
if no alternate authority provided
-s, --silent suppress cli prompts
-u, --rpcUrl=<value> alternate RPC url
-v, --verbose log everything
--asProposal print the transaction as a proposal
--cluster=<option> the solana cluster to connect to
<options: devnet|mainnet-beta|mainnet|localnet>
--commitment=<option> [default: confirmed] commitment level to use with our connection
<options: confirmed|finalized|processed>
--computeUnitLimitMultiple=<value> [default: 1.25] set `computeUnitLimitMultiple` to add some room for on-chain
instructions to be executed
--ledger enable ledger support
--ledgerPath=<value> HID path to the ledger
--mainnetBeta WARNING: use mainnet-beta solana cluster
--priorityFee=<value> [default: 10000] set `computeUnitPrice` to boost transactions landing chances
('priority fees')
--programId=<value> alternative Switchboard program ID to interact with
DESCRIPTION
print the list of user secrets along with their whitelisted MrEnclaves
See code: dist/commands/solana/secrets/print.js
sb update [CHANNEL]
update the sb CLI
USAGE
$ sb update [CHANNEL] [-a] [-v <value> | -i] [--force]
FLAGS
-a, --available Install a specific version.
-i, --interactive Interactively select version to install. This is ignored if a channel is provided.
-v, --version=<value> Install a specific version.
--force Force a re-download of the requested version.
DESCRIPTION
update the sb CLI
EXAMPLES
Update to the stable channel:
$ sb update stable
Update to a specific version:
$ sb update --version 1.0.0
Interactively select version:
$ sb update --interactive
See available versions:
$ sb update --available
See code: @oclif/plugin-update
sb version
USAGE
$ sb version [--json] [--verbose]
FLAGS
--verbose Show additional information about the CLI.
GLOBAL FLAGS
--json Format output as json.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
See code: @oclif/plugin-version
2 months ago
3 months ago
7 months ago
12 months ago
1 year ago
1 year ago
1 year ago
11 months ago
11 months ago
12 months ago
12 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago