CLI Usage — tronctl

tronctl is a full-featured command-line interface for interacting with the TRON blockchain. It supports account management, transactions, staking, and more.

Configuration

Set your preferred TRON node:

tronctl config set node grpc.trongrid.io:50051

Account Operations

Check Balance

tronctl account balance <address>

Get Account Info

tronctl account info <address>

Transfers

Send TRX

tronctl transfer \
  --from <sender> \
  --to <recipient> \
  --amount 100

Send TRC20 Tokens

tronctl trc20 transfer \
  --contract <token_address> \
  --from <sender> \
  --to <recipient> \
  --amount 1000

Resource Management

Stake TRX for Energy

tronctl stake \
  --from <address> \
  --amount 1000 \
  --resource ENERGY

Stake TRX for Bandwidth

tronctl stake \
  --from <address> \
  --amount 500 \
  --resource BANDWIDTH

Key Management

Create New Account

tronctl keys add my-wallet

List Accounts

tronctl keys list

Import Private Key

tronctl keys import my-wallet --private-key <key>

Next Steps