sol-multisig-cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

sol-multisig-cli

CLI to manage Solana transactions using multisig.

oclif Version CircleCI Downloads/week License

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]

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

Package Sidebar

Install

npm i sol-multisig-cli

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

87.6 kB

Total Files

47

Last publish

Collaborators

  • ssallam