Log
Event v210 → current #0Emitted when an Ethereum smart contract emits a log event .
View events on chainUseful 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
Effects
Storage Modified
Postconditions
- Log recorded in block
- Topics and data available for indexing
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | log | Log | Ethereum log entry containing address, topics, and data |
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 Log events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.EVM.Log.get(block.hash);
for (const evt of events) {
console.log("Log:", evt.payload);
}
});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
- v411