ScrapReservoirTao
Storage Map v334 → currentTAO reservoir for fee scraps per subnet .
Explore chainQueried by: developersanalytics
The Big Picture
Prevents fee dust from being lost to rounding.
Use Cases
- Track accumulated scraps
From Chain Metadata
TAO reservoir for scraps of protocol claimed fees.
Purpose & Usage
Purpose
Accumulates sub-minimum fees.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid netuid raw: key1 | u16 | key1 (u16) |
Stored Value
Relationships
Modified By
Related Events
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);
// Query ScrapReservoirTao storage
const key1 = 0;
const result = await api.query.Swap.ScrapReservoirTao.getValue(key1);
console.log("ScrapReservoirTao:", result);Runtime Info
View Source- Pallet
- Swap
- Storage Kind
- Map
- First Version
- v334
- Current Version
- v411