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).string
required
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
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).string
required
Smart contract ID, alias, or EVM address.
string
required
Recipient: alias, account ID, or EVM address.
number
required
Amount passed to
transfer as configured by the token (often smallest units—confirm against decimals for your contract).number
default:"100000"
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.string
required
Smart contract ID, alias, or EVM address.
string
required
Source account: alias, account ID, or EVM address.
string
required
Recipient: alias, account ID, or EVM address.
number
required
Amount for
transferFrom.number
default:"100000"
Gas for the contract call.
Contract ERC-20 Approve
Contract ERC-20 Approve