wallet-cli contract info
July 16, 2026 · View on GitHub
Show contract ABI + metadata.
Synopsis
wallet-cli contract info --contract <address> [options]
Description
Fetches a deployed contract's ABI and metadata (getContract + getContractInfo combined): name, method list, origin address, bytecode, energy settings. Useful before crafting a contract call / contract send — the ABI tells you the exact method signatures. Read-only — no account or password involved.
Options
| Option | Description |
|---|---|
--contract <string> | Required. Contract address |
Plus the global options.
Examples
wallet-cli contract info --contract TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf --network tron:nile
Contract TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf
Name TetherToken
Methods 33 (name / deprecate / approve …)
wallet-cli contract info --contract TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf --network tron:nile -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"contract.info","data":{"address":"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf","name":"TetherToken","functionCount":33,"methods":["name","deprecate","approve","deprecated","addBlackList","totalSupply","transferFrom","…"],"contract":{"origin_address":"41…","contract_address":"41…","abi":{},"bytecode":"…","name":"TetherToken"},"info":{"smart_contract":{},"runtimecode":"…","contract_state":{}}},"meta":{"durationMs":15,"warnings":[]},"chain":{"family":"tron","network":"tron:nile","chainId":"nile"}}
Output
| Field | Type | Meaning |
|---|---|---|
address | string | Contract address |
name | string | Contract name |
functionCount | number | Number of ABI functions |
methods | string[] | Function names |
contract | object | Raw getContract (ABI, bytecode, origin) — json only |
info | object | Raw getContractInfo (runtime code, contract state) — json only |
Text output shows the human summary; the raw contract / info detail is json-only.
Exit status
0 success · 1 execution failure (rpc_error; address is not a contract) · 2 usage error.