BatchCompleted

Event v120 → current #1

Emitted when all calls in a batch completed successfully.

View events on chain
Useful 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

Preconditions

  • batch, batch_all, or force_batch call executed

Effects

Postconditions

  • All batched operations completed

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 BatchCompleted events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("Utility") &&
      event.method === "BatchCompleted"
    )
    .forEach(({ event }) => {
      console.log("BatchCompleted:", event.data.toHuman());
    });
});

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
v393