AllRefunded
Event v273 → current #4Emitted when all contributors have been refunded.
View events on chainUseful for: stakersdevelopersanalytics
The Big Picture
All refunded - can now dissolve.
Use Cases
- Track refund completion
From Chain Metadata
A refund was fully processed for a failed crowdloan.
Triggers
Emitted by
Preconditions
- Final batch of refunds
Effects
Storage Modified
Postconditions
- All contributors refunded
- Ready for dissolution
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | crowdloan_id | u32 CrowdloanId | Crowdloan identifier |
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 AllRefunded events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Crowdloan.AllRefunded.get(block.hash);
for (const evt of events) {
console.log("AllRefunded:", evt.payload);
}
});Runtime Info
- Pallet Index
- 27
- Event Index
- 4
- First Version
- v273
- Current Version
- v411