MinCollateralSet
Event v437 → v440, v441 → current #145A miner set the self-maintaining collateral floor for a hotkey .
View events on chainFrom Chain Metadata
A miner set the self-maintaining collateral floor for a hotkey.
Triggers
Preconditions
- Caller authorized to make changes
Effects
Postconditions
- Value successfully updated
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | netuid | NetUid | netuid: Subnet ID (u16, 0-65535) |
| 1 | hotkey | AccountId | hotkey: Account address (32 bytes, SS58-encoded) (hex -> SS58) |
| 2 | min_locked | AlphaBalance | min_locked: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
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 MinCollateralSet events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.MinCollateralSet.get(block.hash);
for (const evt of events) {
console.log("MinCollateralSet:", evt.payload);
}
});Version History
v437 block 8,679,056 3 args
v441 block 8,765,683 3 args Current
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 145
- First Version
- v437
- Current Version
- v472