Executed

Event v210 → current #0

Emitted when an Ethereum-format transaction is processed.

View events on chain
Useful for: developersanalyticswallets

The Big Picture

Bittensor supports Ethereum transactions via MetaMask, ethers.js, etc. This confirms Ethereum-format transactions were processed.

Use Cases

  • Track Ethereum tx confirmations
  • Build explorers
  • Monitor activity

From Chain Metadata

An ethereum transaction was successfully executed.

Triggers

Emitted by

Preconditions

  • Valid Ethereum tx
  • Signature valid
  • Sufficient gas balance

Effects

Postconditions

  • Tx in Ethereum block
  • Receipt generated

Side Effects

  • Updates CurrentTransactionStatuses
  • Updates CurrentReceipts

Event Data

#NameTypeDescription
0
from
H160 Sender's Ethereum address (H160)
1
to
H160 Recipient/contract address (H160)
2
transaction_hash
H256 Ethereum transaction hash (H256)
3
exit_reason
ExitReason Execution result (Succeed, Revert, Fatal, Error)
4
extra_data
Vec<u8> VecAdditional data like revert reason or return value

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("Ethereum") &&
      event.method === "Executed"
    )
    .forEach(({ event }) => {
      console.log("Executed:", event.data.toHuman());
    });
});

On-Chain Activity

Emission Frequency
●●●○○○ Active 100K–1M emissions

Regular feature-level activity

#32 most emitted event

As of block 7,429,232

Runtime Info

Pallet Index
21
Event Index
0
First Version
v210
Current Version
v393