Executed
Event v210 → current #3Emitted when a contract call succeeds with state changes applied.
View events on chainUseful 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
| # | Name | Type | Description |
|---|---|---|---|
| 0 | address → contract_address | H160 | Address of the executed contract (H160) |
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 Executed events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.EVM.Executed.get(block.hash);
for (const evt of events) {
console.log("Executed:", evt.payload);
}
});Runtime Info
- Pallet Index
- 22
- Event Index
- 3
- First Version
- v210
- Current Version
- v411