Submit multiple extrinsics from a JSON file. Supports atomic, non-atomic, and force modes.
agcli batch --file calls.json [--no-atomic] [--force] [--yes][
{"pallet": "SubtensorModule", "call": "add_stake", "args": ["5Hotkey...", 1, 1000000000]},
{"pallet": "Balances", "call": "transfer_allow_death", "args": ["5Dest...", 5000000000]},
{"pallet": "SubtensorModule", "call": "set_weights", "args": [1, [0,1], [100,200], 0]}
]- Hex strings in args (
"0xdead...") are auto-decoded as bytes - Uses
submit_raw_callfor each call — any pallet/call combo works
| Flag | Utility Call | Behavior |
|---|---|---|
| (default) | batch_all |
Atomic: All calls succeed or all revert |
--no-atomic |
batch |
Non-atomic: Failed calls don't revert others, but may stop on first failure |
--force |
force_batch |
Force: Continues execution even if individual calls fail, never reverts |
- batch_all (default): Related operations that must all succeed together
- batch (
--no-atomic): Independent operations where you want to know which failed - force_batch (
--force): Best-effort execution, never reverts successful calls
Utility::batch_all— Atomic batchUtility::batch— Non-atomic batchUtility::force_batch— Force batch (continues on failure)
agcli scheduler schedule— Schedule calls for future blocks