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
Call Example
name() on the ERC-20 contract (read-only).Smart contract ID or local alias.
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
Call Example
totalSupply() (read-only).Smart contract ID or local alias.
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).Smart contract ID, alias, or EVM address.
Recipient: alias, account ID, or EVM address.
Amount passed to
transfer as configured by the token (often smallest units—confirm against decimals for your contract).Gas for the contract call.
Contract ERC-20 Transfer-From
Contract ERC-20 Transfer-From
Call Example
transferFrom(from, to, value). Requires a sufficient allowance from from for the signing account (typically the operator). Submits a contract call transaction.Smart contract ID, alias, or EVM address.
Source account: alias, account ID, or EVM address.
Recipient: alias, account ID, or EVM address.
Amount for
transferFrom.Gas for the contract call.
Contract ERC-20 Approve
Contract ERC-20 Approve
Call Example
approve(spender, value). Submits a contract call transaction.Smart contract ID, alias, or EVM address.
Spender account: alias, account ID, or EVM address.
Approved amount for
approve.Gas for the contract call.