NewElasticity
Event v210 → current #2Emitted when base fee elasticity parameter is updated.
View events on chainUseful for: developersanalytics
The Big Picture
Elasticity controls fee responsiveness. Higher = faster adjustments to congestion.
Use Cases
- Track parameter changes
- Monitor governance
Triggers
Emitted by
Preconditions
- Admin call
- Valid elasticity value
Effects
Storage Modified
Postconditions
- Elasticity updated
- Affects future fee calculations
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | elasticity | Permill | New elasticity value (Permill) |
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 NewElasticity events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.BaseFee.NewElasticity.get(block.hash);
for (const evt of events) {
console.log("NewElasticity:", evt.payload);
}
});Runtime Info
- Pallet Index
- 25
- Event Index
- 2
- First Version
- v210
- Current Version
- v411