BatchCompletedWithErrors
Event v120 → current #2Emitted when a batch completed but some calls failed.
View events on chainUseful for: developersanalyticswallets
The Big Picture
force_batch continues on failure. Check ItemFailed events for details.
Use Cases
- Monitor partial batch success
From Chain Metadata
Batch of dispatches completed but has errors.
Triggers
Emitted by
Preconditions
- force_batch call executed
- At least one call failed
Effects
Postconditions
- Successful calls persisted
Side Effects
- Check ItemFailed for details
This event has no data fields.
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Subscribe to BatchCompletedWithErrors events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Utility") &&
event.method === "BatchCompletedWithErrors"
)
.forEach(({ event }) => {
console.log("BatchCompletedWithErrors:", event.data.toHuman());
});
});On-Chain Activity
Emission Frequency
●●●●○○ Significant 1M–5M emissions
Major features with millions of emissions
#24 most emitted event
As of block 7,429,232
Runtime Info
- Pallet Index
- 11
- Event Index
- 2
- First Version
- v120
- Current Version
- v393