Created
Event v210 → current #1Emitted when a new smart contract is deployed to the EVM .
View events on chainUseful for: developersanalytics
The Big Picture
Contract deployment makes code live on-chain. This could be tokens, DeFi, NFTs, or any Ethereum-compatible smart contract on Bittensor.
Use Cases
- Track deployments
- Build contract registry
- Monitor ecosystem growth
From Chain Metadata
A contract has been created at given address.
Triggers
Effects
Storage Modified
Postconditions
- Contract code stored at address
- Address deterministically derived
Side Effects
- AccountCodes updated
- AccountCodesMetadata updated
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | address → contract_address | H160 | Address of the newly deployed 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 Created events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.EVM.Created.get(block.hash);
for (const evt of events) {
console.log("Created:", evt.payload);
}
});Runtime Info
- Pallet Index
- 22
- Event Index
- 1
- First Version
- v210
- Current Version
- v411