Most Used Commands
Create a batch, queue two token creates, then executeFull Command Reference
Batch Create
Batch Create
Create a named batch and choose which key will sign the batch transaction when you run Example
batch execute.Name or alias for the batch.
Key used to sign batched transactions. Defaults to the operator when omitted. Accepts
{accountId}:{privateKey}, {ed25519|ecdsa}:private:{private-key}, key reference, or account alias.Key manager to use:
local or local_encrypted (defaults to config setting).Batch Execute
Batch Execute
Sign and submit all transactions in the batch as one atomic batch transaction. The batch must already exist and contain at least one queued transaction. After a successful run, related plugins update local state (for example token or account hooks registered on this command).Example
Name of the batch to execute.
Batch List
Batch List
List all batches stored in CLI state (name, size, execution status).Example
Batch Delete
Batch Delete
Adding transactions to a batch (-B / --batch)
The Batch plugin registers hooks that other commands use. When a command supports batching and you pass -B <name> or --batch <name> (same option), the CLI does not submit that transaction immediately. It serializes the signed inner transaction and appends it to the batch named <name>. Run hcli <plugin> <subcommand> --help on the command you care about. If batching is wired for that command, the help text includes -B / --batch.
As of the current Hiero CLI manifests, batch hooks are registered on:
- Account:
create,update,delete - HBAR:
transfer - Topic:
create,submit-message,update,delete - Token: many HTS transaction subcommands under
token(seesrc/plugins/token/manifest.tsfor the full list). Examples includecreate-ft,create-ft-from-file,create-nft,create-nft-from-file,associate,transfer-ft,transfer-nft, and other operations that declarebatchify-set-batch-key/batchify-add-transaction.
- Create the batch with
batch createbefore adding transactions. - A batch can hold at most 50 inner transactions (enforced in the batch hook implementation). Limits and atomic batch semantics on the network come from HIP-551: Batch transactions in the Hiero Improvement Proposals repository.
batch executerefuses to run if that batch name was already executed on the current network. Usebatch listto inspect status andbatch deleteto remove a batch you no longer need (including freeing a name for reuse).
Operator key on batch create:
The --key / -k flag on batch create is optional in the CLI manifest. If you omit it, signing falls back to the operator key. Some older README text may say the key is required. Trust hcli batch create --help and this page.Related
For Hedera scheduled transactions (--scheduled / -X) instead of queued batch execution, see the Schedule plugin.