Most Used Commands
Read token metadata and an account balanceFull Command Reference
Commands use thecontract-erc20 namespace (for example hcli contract-erc20 name). --contract / -c accepts a local alias, Hedera contract ID (0.0.xxx), or EVM address (0x…) where the manifest says so.
Contract ERC-20 Name
Contract ERC-20 Name
Contract ERC-20 Symbol
Contract ERC-20 Symbol
Contract ERC-20 Decimals
Contract ERC-20 Decimals
Contract ERC-20 Total-Supply
Contract ERC-20 Total-Supply
Contract ERC-20 Balance-Of
Contract ERC-20 Balance-Of
Contract ERC-20 Allowance
Contract ERC-20 Allowance
Contract ERC-20 Transfer
Contract ERC-20 Transfer
Call Example
transfer(to, value). Submits a contract call transaction (operator signs).Amount passed to
transfer as configured by the token (often smallest units—confirm against decimals for your contract).Contract ERC-20 Transfer-From
Contract ERC-20 Transfer-From
Call
transferFrom(from, to, value). Requires a sufficient allowance from from for the signing account (typically the operator). Submits a contract call transaction.ExampleContract ERC-20 Approve
Contract ERC-20 Approve