Crowdloans

Storage Map v273 → v411 Changed in v411

Map of crowdloan IDs to their information.

Explore chain
Queried by: stakersdevelopersanalytics

The Big Picture

The source of truth for all crowdfunding campaigns on Bittensor.

Use Cases

  • Check crowdloan status
  • Display campaign details
  • Build crowdloan browsers

From Chain Metadata

A map of crowdloan ids to their information.

Purpose & Usage

Purpose

Stores all crowdloan campaigns and their current state.

Common Query Patterns

  • Query by crowdloan ID
  • Iterate to list all crowdloans

Query Keys

#NameTypeDescription
1
crowdloanId
raw: key1
u32 key1 (u32)

Stored Value

value (CrowdloanInfo)

Relationships

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 Crowdloans storage
const key1 = 0;

const result = await api.query.Crowdloan.Crowdloans.getValue(key1);
console.log("Crowdloans:", result);

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

<10K estimated writes

#64 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 7,429,232

Version History

v273 block 5,659,032 Added
v275–v275 · runtime versions skipped on chain (never deployed)
v276 block 5,781,672 Internal re-bind
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind
v293–v296 · runtime versions skipped on chain (never deployed)
v297 block 6,067,943 Internal re-bind
v299–v300 · runtime versions skipped on chain (never deployed)
v301 block 6,205,194 Internal re-bind
v316–v319 · runtime versions skipped on chain (never deployed)
v320 block 6,523,566 Internal re-bind
v324–v325 · runtime versions skipped on chain (never deployed)
v326 block 6,608,228 Internal re-bind
v327–v333 · runtime versions skipped on chain (never deployed)
v334 block 6,811,690 Internal re-bind
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind
v363–v364 · runtime versions skipped on chain (never deployed)
v365 block 7,135,419 Internal re-bind
v378–v384 · runtime versions skipped on chain (never deployed)
v385 block 7,782,670 Internal re-bind
v386–v390 · runtime versions skipped on chain (never deployed)
v391 block 7,782,857 Internal re-bind
v394–v400 · runtime versions skipped on chain (never deployed)
v401 block 8,036,576 Internal re-bind
v403–v410 · runtime versions skipped on chain (never deployed)
v411 block 8,283,784 Internal re-bind Current

Runtime Info

Pallet
Crowdloan
Storage Kind
Map
First Version
v273
Current Version
v411