This storage item was removed in v219

This storage item is no longer available in the current runtime. Existed from v210 to v219. Shown here for historical reference.

MinGasPrice

Storage Removed Plain v210 → v219 (removed)

The current minimum gas price.

Queried by: developerswallets

The Big Picture

The minimum acceptable gas price - transactions below this are rejected.

Use Cases

  • Ensure transactions meet minimum
  • Estimate minimum costs

Purpose & Usage

Purpose

Floor for gas prices in the dynamic fee algorithm.

Common Query Patterns

  • Single value query

Stored Value

value (U256)

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 });

// Query MinGasPrice storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("DynamicFee")]
  [stringCamelCase("MinGasPrice")]();
console.log("MinGasPrice:", result.toHuman());

Runtime Info

Pallet
DynamicFee
Storage Kind
Plain
First Version
v210
Removed In
v219