BatchCompleted
Event v120 → current #1Emitted when all calls in a batch completed successfully.
View events on chainUseful for: developersanalyticswallets
The Big Picture
The happy path - all your batched operations worked.
Use Cases
- Confirm entire batch succeeded
From Chain Metadata
Batch of dispatches completed fully with no error.
Triggers
Emitted by
Preconditions
- batch, batch_all, or force_batch call executed
Effects
Postconditions
- All batched operations completed
This event has no data fields.
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Subscribe to BatchCompleted events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Utility.BatchCompleted.get(block.hash);
for (const evt of events) {
console.log("BatchCompleted:", evt.payload);
}
});On-Chain Activity
Emission Frequency
●●●●○○ Significant 1M–5M emissions
Major features with millions of emissions
#20 most emitted event
As of block 7,429,232
Runtime Info
- Pallet Index
- 11
- Event Index
- 1
- First Version
- v120
- Current Version
- v411