ScrapReservoirAlpha
Storage Map v334 → currentAlpha reservoir for fee scraps per subnet .
Explore chainQueried by: developersanalytics
The Big Picture
Prevents Alpha fee dust from rounding errors.
Use Cases
- Track Alpha scraps
From Chain Metadata
Alpha reservoir for scraps of protocol claimed fees.
Purpose & Usage
Purpose
Same as ScrapReservoirTao for Alpha.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
Relationships
Modified By
Related Events
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 ScrapReservoirAlpha storage
const key1 = 0;
const result = await api.query
[stringCamelCase("Swap")]
[stringCamelCase("ScrapReservoirAlpha")](
key1
);
console.log("ScrapReservoirAlpha:", result.toHuman());Runtime Info
View Source- Pallet
- Swap
- Storage Kind
- Map
- First Version
- v334
- Current Version
- v393