This event was removed in v277
This event is no longer emitted in the current runtime. Existed from v273 to v277. Shown here for historical reference.
AggregatedStakeAdded
Event Removed v273 → v277 (removed) #4stake has been transferred from the coldkey account onto the hotkey staking account (at the end of the block )
From Chain Metadata
stake has been transferred from the coldkey account onto the hotkey staking account (at the end of the block)
Triggers
Emitted by
Preconditions
- Required conditions for addition met
May fail with
NotEnoughStaketoWithdrawNotEnoughStakeNotEnoughStakeToWithdrawNotEnoughStakeToSetWeightsStakeToWithdrawIsZeroNotEnoughStakeToSetChildkeysNotEnoughBalanceToStakeStakeAlreadyAddedStakeRateLimitExceededUnstakeRateLimitExceededStakeTooLowForRootBelowStakeThresholdNomStakeBelowMinimumThresholdCannotUnstakeLockStakeUnavailableZeroMaxStakeAmountSameAutoStakeHotkeyAlreadySetAddStakeBurnRateLimitExceededInsufficientStakeForLock
Effects
Storage Modified
Postconditions
- Item successfully added
Event Data
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 AggregatedStakeAdded events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.AggregatedStakeAdded.get(block.hash);
for (const evt of events) {
console.log("AggregatedStakeAdded:", evt.payload);
}
});Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 4
- First Version
- v273
- Removed In
- v277