Executed

Event v210 → current #3

Emitted when a contract call succeeds with state changes applied.

View events on chain
Useful for: developersanalytics

The Big Picture

Confirms a contract call worked and state was updated. Essential for knowing when transactions actually succeed.

Use Cases

  • Confirm interactions
  • Track call patterns
  • Monitor usage

From Chain Metadata

A contract has been executed successfully with states applied.

Triggers

Emitted by

Preconditions

  • Contract exists
  • Valid call data
  • Sufficient gas

Effects

Storage Modified

Postconditions

  • State changes persisted
  • Return data available

Side Effects

  • May emit Log events
  • May transfer value

Event Data

#NameTypeDescription
0
address
→ contract_address
H160 Address of the executed contract (H160)

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

Runtime Info

Pallet Index
22
Event Index
3
First Version
v210
Current Version
v393