Loading...
Loading...
Use when user wants to interact with Hedera blockchain: create/transfer tokens, manage NFTs, deploy contracts, manage topics, transfer HBAR, sign x402 payment challenges, configure networks. ALSO use when an HTTP request returns 402 with a PAYMENT-REQUIRED header for the Hedera x402 scheme (or the user wants to pay an x402-gated endpoint on Hedera): read references/x402.md for the full GET→402→sign→retry flow. Provides full spec for hcli CLI tool. Trigger keywords: hedera, hiero, hbar, token, nft, contract, topic, x402, 402, payment-required, hcli, ledger
npx skill4agent add hedera-dev/hedera-skills hiero-clihclihcli <plugin> <command> [options]| Flag | Short | Default | Description |
|---|---|---|---|
| | | Output format: |
| | active | Override active network for this command |
| | operator | Override payer account for this command; defaults to operator if omitted |
| | | Skip all confirmation prompts |
| | config | Max transaction fee ceiling for this run: HBAR (e.g. |
hcli network use --global testnethcli network set-operator --operator <accountId>:<privateKey>{accountId}:{privateKey}0.0.123:abc123...{ed25519|ecdsa}:private:{hex}{ed25519|ecdsa}:public:{hex}kr_xxx~/.hiero-cli/state/| Plugin | File |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
"1""100t"| Plugin | Description | Tasks covered |
|---|---|---|
| Manage Hedera accounts | create, import, balance, list, view, update, delete, clear |
| Transfer HBAR | transfer HBAR, approve/revoke HBAR allowance |
| Manage FT & NFT tokens | create-ft/nft, create-from-file, mint, burn, wipe, transfer, airdrop, associate, dissociate, freeze/unfreeze, pause/unpause, grant/revoke KYC, allowance (FT/NFT), delete-allowance-nft, update-metadata-nft, pending-airdrops, cancel/claim/reject-airdrop, list, view, import, delete |
| Hedera Consensus Service | create, update, submit/find messages, import, list, delete |
| Scheduled transactions | create schedule record, sign pending schedule, delete schedule, verify execution state, list schedules. Use |
| Smart contract lifecycle | compile + deploy Solidity, import, list, delete |
| ERC-20 contract calls | name, symbol, decimals, balanceOf, transfer, transferFrom, approve, allowance, totalSupply. Requires |
| ERC-721 contract calls | balanceOf, ownerOf, approve, setApprovalForAll, safeTransferFrom, transferFrom, mint, name, symbol, tokenURI, getApproved, isApprovedForAll. Requires |
| Network configuration | list networks, switch network, set/get operator |
| CLI configuration | list, get, set config options |
| Key/credentials management | generate new key, import existing key, list, remove stored credentials (by id or alias) |
| Batch transactions | create batch, add transactions, execute, list, delete |
| Multi-party asset exchange | create swap, add HBAR/FT/NFT transfers, view, list, execute, delete |
| EIP-712 typed data signing | |
| x402 payment signing | sign a |
| Plugin lifecycle | add, remove, enable, disable, list, reset, info |
references/<plugin>.mdhcli token create-ftreferences/token.mdreferences/batch.mdhcli token mint-ftreferences/batch.mdreferences/token.mdreferences/schedule.md--scheduled <name>-Xhcli token burn-ftreferences/schedule.mdreferences/token.md402PAYMENT-REQUIREDacceptshedera:mainnethedera:testnetexactreferences/x402.mdhcli x402 signPAYMENT-SIGNATUREhcliis not installed or not available in PATH. Docs & quick start: https://www.npmjs.com/package/@hiero-ledger/hiero-cli#quick-starthcliInstall with:npm install -g @hiero-ledger/hiero-cliWould you like me to run the install command for you?
CLI operator is not configuredhcli network set-operator --operator <accountId>:<privateKey>Plugin 'X' is disabled.hcli plugin-management enable --name Xhcli network use --global testnet
hcli network set-operator --operator 0.0.12345:302e...privatekey...# 1. Create token
hcli token create-ft --token-name "MyToken" --symbol MTK --decimals 2 --initial-supply 1000000
# 2. Associate recipient account
hcli token associate --token MTK --account 0.0.67890:302e...key...
# 3. Transfer tokens
hcli token transfer-ft --token MTK --to 0.0.67890 --amount 100# 1. Deploy built-in ERC-20 template
hcli contract create --name myErc20 --default erc20 --constructor-parameter "MyToken" --constructor-parameter "MTK"
# 2. Check balance
hcli contract-erc20 balance-of --contract myErc20 --account 0.0.12345
# 3. Transfer via contract
hcli contract-erc20 transfer --contract myErc20 --to 0.0.67890 --value 50# 1. Create batch
hcli batch create --name mintBatch --key 0.0.12345:302e...key...
# 2. Add transactions to batch (using --batch flag on batchify-compatible commands)
hcli token mint-ft --token MTK --amount 1000 --supply-key 0.0.12345:302e...key... --batch mintBatch
# 3. Execute batch
hcli batch execute --name mintBatch