sol-multisig-cli
v0.0.2
Published
CLI to manage Solana transactions using multisig.
Downloads
3
Readme
sol-multisig-cli
CLI to manage Solana transactions using multisig.
Usage
$ npm install -g sol-multisig-cli
$ sol-multisig COMMAND
running command...
$ sol-multisig (-v|--version|version)
sol-multisig-cli/0.0.2 linux-x64 node-v16.1.0
$ sol-multisig --help [COMMAND]
USAGE
$ sol-multisig COMMAND
...
Commands
sol-multisig approve [TRANSACTION]
sol-multisig create [PARTICIPANTS]
sol-multisig execute [TRANSACTION]
sol-multisig help [COMMAND]
sol-multisig listsigners
sol-multisig listtransactions
sol-multisig saberdeposit [SWAPACCOUNT] [AMOUNTA] [AMOUNTB] [MINPOOLAMOUNT]
sol-multisig saberwithdraw [SWAPACCOUNT] [POOLAMOUNT] [MINAMOUNTA] [MINAMOUNTB]
sol-multisig transfertokens [TOKEN] [AMOUNT] [DESTINATION]
sol-multisig approve [TRANSACTION]
Approve (sign) an existing transaction.
USAGE
$ sol-multisig approve [TRANSACTION]
ARGUMENTS
TRANSACTION the transaction`s publickey
OPTIONS
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig approve CqJTr3je2ENaenVtZDboVDTVPioFUmMuQNu4N5XeFWmh -m DbnEfsCR6gSk2Doqr8chiS8Uus2sizUn4H8zg6iU7Lkr
See code: src/commands/approve.ts
sol-multisig create [PARTICIPANTS]
Create a new multisig account.
USAGE
$ sol-multisig create [PARTICIPANTS]
OPTIONS
-h, --help show CLI help
-s, --signer=signer path to wallet file of payer for the transaction
-t, --threshold=threshold [default: 2] multisig threshold, minimum number of signers required to execute a
transaction (DEFAULT=2).
-x, --maxNumSigners=maxNumSigners [default: 10] max number of signers in the multisig (DEFAULT=10).
EXAMPLE
$ sol-multisig create "SIGNER_ACC1,SIGNER_ACC2,SIGNER_ACC3" -t 2 -x 9
See code: src/commands/create.ts
sol-multisig execute [TRANSACTION]
Execute an existing transaction that is already signed by the minimum number of owners.
USAGE
$ sol-multisig execute [TRANSACTION]
OPTIONS
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig execute CqJTr3je2ENaenVtZDboVDTVPioFUmMuQNu4N5XeFWmh --signer=~/.config/solana/id.json
See code: src/commands/execute.ts
sol-multisig help [COMMAND]
display help for sol-multisig
USAGE
$ sol-multisig help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
sol-multisig listsigners
List the signers of the specified multisig wallet.
USAGE
$ sol-multisig listsigners
OPTIONS
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
-t, --token=token token mint (publicKey)
EXAMPLE
$ sol-multisig listSigners -m DbnEfsCR6gSk2Doqr8chiS8Uus2sizUn4H8zg6iU7Lkr
See code: src/commands/listsigners.ts
sol-multisig listtransactions
List all transactions for the given multisig account.
USAGE
$ sol-multisig listtransactions
OPTIONS
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig listTx -m DbnEfsCR6gSk2Doqr8chiS8Uus2sizUn4H8zg6iU7Lkr
See code: src/commands/listtransactions.ts
sol-multisig saberdeposit [SWAPACCOUNT] [AMOUNTA] [AMOUNTB] [MINPOOLAMOUNT]
Deposit tokens into a Saber pool.
USAGE
$ sol-multisig saberdeposit [SWAPACCOUNT] [AMOUNTA] [AMOUNTB] [MINPOOLAMOUNT]
OPTIONS
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig saberDeposit VeNkoB1HvSP6bSeGybQDnx9wTWFsQb2NBCemeCDSuKL 10 10 1
See code: src/commands/saberdeposit.ts
sol-multisig saberwithdraw [SWAPACCOUNT] [POOLAMOUNT] [MINAMOUNTA] [MINAMOUNTB]
Withdraw tokens from a Saber pool.
USAGE
$ sol-multisig saberwithdraw [SWAPACCOUNT] [POOLAMOUNT] [MINAMOUNTA] [MINAMOUNTB]
OPTIONS
-a, --destA=destA destination account for token A
-b, --destB=destB destination account for token B
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig saberWithdraw VeNkoB1HvSP6bSeGybQDnx9wTWFsQb2NBCemeCDSuKL 1 2 2
See code: src/commands/saberwithdraw.ts
sol-multisig transfertokens [TOKEN] [AMOUNT] [DESTINATION]
Submit a transaction to transfer tokens via the multisig wallet.
USAGE
$ sol-multisig transfertokens [TOKEN] [AMOUNT] [DESTINATION]
OPTIONS
-f, --from=from source pubkey
-h, --help show CLI help
-m, --multisig=multisig multisig account (publicKey)
-s, --signer=signer path to wallet file of payer for the transaction
EXAMPLE
$ sol-multisig transferTokens <token-mint> <amount-float> <destination-token-account>
See code: src/commands/transfertokens.ts