set_elasticity

Call v210 → current #1

Sets the base fee elasticity parameter (admin only).

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developers

The Big Picture

Elasticity controls how fast fees respond to congestion - higher = more volatile.

Use Cases

  • Tune fee responsiveness
  • Stabilize/destabilize gas prices

Input Parameters

#NameTypeDescription
0
elasticity
Permill elasticity: Per-million ratio (0..1,000,000)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Admin/root privileges
  • Valid Permill

Effects

Events Emitted

Storage Modified

Postconditions

  • Elasticity updated
  • NewElasticity emitted

Side Effects

  • Affects fee responsiveness to congestion

Code Examples

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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);

// Build set_elasticity call (typed, named args)
const elasticity = undefined as any /* Permill — replace with real value */;

const tx = api.tx.BaseFee.set_elasticity({
  elasticity,
});

Runtime Info

Pallet Index
25
Call Index
1
First Version
v210
Current Version
v411