Skip to content

Commands

Ivan Kalinin edited this page Nov 26, 2020 · 2 revisions

Convert address

Convert address into another formats
Usage: ton-msig convert

Generate new address

Generate new keypair and address
Usage: ton-msig generate [OPTIONS]

Options:
  -a,--addr BOOLEAN=1                        Whether to generate an address
  -w,--workchain INT:INT in [-1 - 0]         Workchain
  -f,--from TEXT:(FILE) OR (PHRASE)          Mnemonic or path to keypair file

Deploy wallet

Deploy new contract
Usage: ton-msig deploy [OPTIONS]

Options:
  -s,--sign TEXT:(FILE) OR (PHRASE) REQUIRED Mnemonic or path to keypair file
  -w,--workchain INT:INT in [-1 - 0]         Workchain
  -o,--owner TEXT:KEY ... REQUIRED           Custodian public key
  -r,--req-confirms UINT:INT in [1 - 32]=1   Number of confirmations required for executing transaction
  --timeout UINT:INT in [10 - 86400]=60      Set message expiration timeout in seconds
  --save TEXT                                Save message info to file

Get account info

Get account info
Usage: ton-msig addr info [OPTIONS]

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address

Submit new transaction

Create new transaction
Usage: ton-msig addr submitTransaction [OPTIONS] dest value

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address
  dest TEXT:ADDRESS REQUIRED                 Destination address
  value TEXT:TON REQUIRED                    Message value in TON

Options:
  --all-balance BOOLEAN=0                    Send all balance and delete contract
  --bounce BOOLEAN=1                         Return message back when it is send to uninitialized address
  --payload TEXT                             Serialized bag of cells of message body
  -s,--sign TEXT:(FILE) OR (PHRASE) REQUIRED Mnemonic or path to keypair file
  --local                                    Force local execution
  --timeout UINT:INT in [10 - 86400]=60      Set message expiration timeout in seconds
  --save TEXT                                Save message info to file

Confirm pending transaction

Confirm pending transaction
Usage: ton-msig addr confirmTransaction [OPTIONS] transactionId

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address
  transactionId UINT REQUIRED                Transaction id

Options:
  -s,--sign TEXT:(FILE) OR (PHRASE) REQUIRED Mnemonic or path to keypair file
  --local                                    Force local execution
  --timeout UINT:INT in [10 - 86400]=60      Set message expiration timeout in seconds
  --save TEXT                                Save message info to file

Check whether transaction is confirmed

Check if transactions are confirmed
Usage: ton-msig addr isConfirmed mask index

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address
  mask UINT:POSITIVE REQUIRED                Mask
  index UINT:POSITIVE REQUIRED               Index

Get multisig parameters

Get msig parameters
Usage: ton-msig addr getParameters

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address

Get transaction by id

Get transaction info
Usage: ton-msig addr getTransaction transactionId

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address
  transactionId UINT:POSITIVE REQUIRED       Transaction id

Get pending transactions

Get pending transactions
Usage: ton-msig addr getTransactions

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address

Get pending transaction ids

Get ids of pending transactions
Usage: ton-msig addr getTransactionIds

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address

Get custodians

Get owners of this wallet
Usage: ton-msig addr getCustodians

Positionals:
  addr ADDRESS:ADDRESS                       Wallet contract address