Log

Event v210 → current #0

Emitted when an Ethereum smart contract emits a log event .

View events on chain
Useful for: developersanalytics

The Big Picture

Smart contracts emit events (logs) to communicate state changes. This is how dApps track token transfers, DEX swaps, and all contract activity on Bittensor's EVM.

Use Cases

  • Index ERC-20 events
  • Monitor contract activity
  • Build dApp listeners

From Chain Metadata

Ethereum events from contracts.

Triggers

Preconditions

  • Smart contract is executing
  • Contract calls LOG opcode

Effects

Postconditions

  • Log recorded in block
  • Topics and data available for indexing

Event Data

#NameTypeDescription
0
log
Log Ethereum log entry containing address, topics, and data

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

On-Chain Activity

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

Regular feature-level activity

#31 most emitted event

As of block 7,429,232

Runtime Info

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