Justcli Tx Command
Tx subcommands list
- send
-
Create and sign a send tx
-
staking
-
Staking transaction subcommands
-
distribution
- Distribution transactions subcommands
justcli tx -h
Transactions subcommands
Usage:
justcli tx [command]
Available Commands:
send Create and sign a send tx
distribution Distribution transactions subcommands
staking Staking transaction subcommands
Flags:
-h, --help help for tx
Global Flags:
--chain-id string Chain ID of tendermint node
-e, --encoding string Binary encoding (hex|b64|btc) (default "hex")
--home string directory for config and data (default "/root/.justcli")
-o, --output string Output format (text|json) (default "text")
--trace print out full stack trace on errors
Additional help topics:
justcli tx
justcli tx
justcli tx
justcli tx
justcli tx
Use "justcli tx [command] --help" for more information about a command.
justcli tx send subcommand
root@ubuntu-03:~# justcli tx send -h
Create and sign a send tx
Usage:
justcli tx send [from_key_or_address] [to_address] [amount] [flags]
Flags:
-a, --account-number uint The account number of the signing account (offline mode only)
-b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) (default "block")
--dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it
--fees string Fees to pay along with transaction; eg: 10ajt
--from string Name or address of private key with which to sign
--gas string gas limit to set per-transaction; set to "auto" to calculate required gas automatically (default 200000) (default "200000")
--gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1)
--gas-prices string Gas prices to determine the transaction fee (e.g. 10ajt)
--generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is not accessible and the node operates offline)
-h, --help help for send
--indent Add indent to JSON response
--ledger Use a connected Ledger device
--memo string Memo to send along with transaction
--node string <host>:<port> to tendermint rpc interface for this chain (default "tcp://localhost:26657")
-s, --sequence uint The sequence number of the signing account (offline mode only)
--trust-node Trust connected full node (don't verify proofs for responses) (default true)
-y, --yes Skip tx broadcasting prompt confirmation
Global Flags:
--chain-id string Chain ID of tendermint node
-e, --encoding string Binary encoding (hex|b64|btc) (default "hex")
--home string directory for config and data (default "/root/.justcli")
-o, --output string Output format (text|json) (default "text")
--trace print out full stack trace on errors
Example
The following command could be used to send coins from one account to another:
justcli tx send <account_name> <receive_address> 100000000000000000000ajt --fees=5000000000000000ajt
1jt=10^18ajt。fees:5000000000000000ajt
justcli tx staking subcommand
justcli tx staking -h
Usage:
justcli tx staking [flags]
justcli tx staking [command]
Available Commands:
delegate Delegate liquid JT to a supernode
redelegate Redelegate illiquid JT from one supernode to another
unbond Unlock shares from a supernode
Flags:
-h, --help help for staking
Global Flags:
--chain-id string Chain ID of tendermint node
-e, --encoding string Binary encoding (hex|b64|btc) (default "hex")
--home string directory for config and data (default "/root/.justcli")
-o, --output string Output format (text|json) (default "text")
--trace print out full stack trace on errors
Additional help topics:
justcli tx staking
justcli tx staking
Use "justcli tx staking [command] --help" for more information about a command.
Examples:
On the Just mainnet, we delegate ajt, where 1jt = 10^18ajt. You can query the list of all supernodes of a specific chain:
justcli query staking validators
Here's how you can lock JT to a supernodes:
justcli tx staking delegate <supernodes_address> <amount>ajt --from <account_name> --fees=5000000000000000ajt
Once submitted a delegation to a supernode, you can see it's information by using the following command:
justcli query staking delegation <delegator_address> <supernode_address>
If you want to check all your current delegations with disctinct supernodes:
justcli query distribution rewards <account_address>
Withdraw all your profits:
justcli tx distribution withdraw-all-rewards --from <account_name> --fees=5000000000000000ajt
justcli tx distribution subcommand
justcli tx distribution -h
Usage:
justcli tx distribution [flags]
justcli tx distribution [command]
Available Commands:
withdraw-rewards Withdraw rewards from a given delegation address, and optionally withdraw supernode commission if the delegation address given is a supernode operator
set-withdraw-addr change the default withdraw address for rewards associated with an address
withdraw-all-rewards withdraw all delegations rewards for a delegator
Flags:
-h, --help help for distribution
Global Flags:
--chain-id string Chain ID of tendermint node
-e, --encoding string Binary encoding (hex|b64|btc) (default "hex")
--home string directory for config and data (default "/root/.justcli")
-o, --output string Output format (text|json) (default "text")
--trace print out full stack trace on errors
Use "justcli tx distribution [command] --help" for more information about a command.
Examples:
Withdraw all your profits:
justcli tx distribution withdraw-all-rewards --from <account_name> --fees=5000000000000000ajt