ItemCompleted

Event v120 → current #3

Emitted for each call in a batch that completed successfully.

View events on chain
Useful for: developersanalytics

The Big Picture

Granular success tracking within batches.

Use Cases

  • Track individual call success within batch

From Chain Metadata

A single item within a Batch of dispatches has completed with no error.

Triggers

Preconditions

  • Part of a batch execution

Effects

Postconditions

  • Call's state changes persisted

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

On-Chain Activity

Emission Frequency
●●●●●○ Dominant 5M–50M emissions

Core protocol operations, high volume

#9 most emitted event

As of block 7,429,232

Runtime Info

Pallet Index
11
Event Index
3
First Version
v120
Current Version
v393