-
Notifications
You must be signed in to change notification settings - Fork 1
Commands
Ivan Kalinin edited this page Nov 26, 2020
·
2 revisions
- Convert address
- Get public key from private key
- Generate new address
- Deploy wallet
- Get account info
- Submit new transaction
- Confirm pending transaction
- Check whether transaction is confirmed
- Get multisig parameters
- Get transaction by id
- Get pending transactions
- Get pending transaction ids
- Get custodians
Convert address into another formats
Usage: ton-msig convert
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 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
Usage: ton-msig addr info [OPTIONS]
Positionals:
addr ADDRESS:ADDRESS Wallet contract address
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
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 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 msig parameters
Usage: ton-msig addr getParameters
Positionals:
addr ADDRESS:ADDRESS Wallet contract address
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
Usage: ton-msig addr getTransactions
Positionals:
addr ADDRESS:ADDRESS Wallet contract address
Get ids of pending transactions
Usage: ton-msig addr getTransactionIds
Positionals:
addr ADDRESS:ADDRESS Wallet contract address
Get owners of this wallet
Usage: ton-msig addr getCustodians
Positionals:
addr ADDRESS:ADDRESS Wallet contract address