Crowdloans

Storage Map v273 → current

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
key1
u32 key1 (u32)

Stored Value

value (CrowdloanInfo)

Relationships

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

const result = await api.query
  [stringCamelCase("Crowdloan")]
  [stringCamelCase("Crowdloans")](
  key1
);

console.log("Crowdloans:", result.toHuman());

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

Runtime Info

Pallet
Crowdloan
Storage Kind
Map
First Version
v273
Current Version
v393