Most Used Commands
Read collection metadata and token ownershipFull Command Reference
Commands use thecontract-erc721 namespace (for example hcli contract-erc721 name). --contract / -c accepts a local alias, Hedera contract ID (0.0.xxx), or EVM address (0x…) where the manifest allows it.
Contract ERC-721 Name
Contract ERC-721 Name
Contract ERC-721 Symbol
Contract ERC-721 Symbol
Contract ERC-721 Balance-Of
Contract ERC-721 Balance-Of
Contract ERC-721 Owner-Of
Contract ERC-721 Owner-Of
Contract ERC-721 Get-Approved
Contract ERC-721 Get-Approved
Contract ERC-721 Is-Approved-For-All
Contract ERC-721 Is-Approved-For-All
Call Example
isApprovedForAll(address owner, address operator) (read-only).Smart contract ID, alias, or EVM address.
Owner account: alias, account ID, or EVM address.
Operator account: alias, account ID, or EVM address.
Contract ERC-721 Token-URI
Contract ERC-721 Token-URI
Contract ERC-721 Approve
Contract ERC-721 Approve
Call Example
approve(address to, uint256 tokenId). State-changing (operator signs).Smart contract ID, alias, or EVM address.
Address approved to transfer the token: alias, account ID, or EVM address.
Token ID to approve.
Gas for the contract call.
Contract ERC-721 Set-Approval-For-All
Contract ERC-721 Set-Approval-For-All
Call Example
setApprovalForAll(address operator, bool approved). State-changing.Smart contract ID, alias, or EVM address.
Operator account: alias, account ID, or EVM address.
Must be the string
true or false.Gas for the contract call.
Contract ERC-721 Safe-Transfer-From
Contract ERC-721 Safe-Transfer-From
Call Example
safeTransferFrom (with or without the extra bytes argument). State-changing.Smart contract ID, alias, or EVM address.
Current owner: alias, account ID, or EVM address.
New owner: alias, account ID, or EVM address.
Token ID to transfer.
Gas for the contract call.
Optional data payload for the 4-argument
safeTransferFrom overload.Contract ERC-721 Transfer-From
Contract ERC-721 Transfer-From
Call Example
transferFrom(address from, address to, uint256 tokenId). State-changing.Smart contract ID, alias, or EVM address.
Current owner: alias, account ID, or EVM address.
Recipient: alias, account ID, or EVM address.
Token ID to transfer.
Gas for the contract call.
Contract ERC-721 Mint
Contract ERC-721 Mint
Calls a custom Example
mint(address to, uint256 tokenId) style entry point (experimental). The manifest marks this command as experimental and assumes a contract that exposes a compatible mint used for testing.Smart contract ID, alias, or EVM address.
Recipient of the minted token: alias, account ID, or EVM address.
Token ID to mint.
Gas for the contract call.