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 { 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 Created events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("EVM") &&
event.method === "Created"
)
.forEach(({ event }) => {
console.log("Created:", event.data.toHuman());
});
});Runtime Info
- Pallet Index
- 22
- Event Index
- 1
- First Version
- v210
- Current Version
- v393