Queries

crowdloan

A crowdloan's state (creator, deposit, raised, cap, end, target/call), or None.

View as Markdown

Amounts are TAO; end is the block number at which contributions close.

Category: Leases & crowdloans

Parameters

ParameterTypeDescription
crowdloan_idintegerId of the crowdloan to look up.

CLI

btcli query crowdloan --crowdloan-id <integer> --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.leasing.crowdloan(crowdloan_id=1)

Or dispatch by name, as an agent would:

result = await client.read("crowdloan", crowdloan_id=1)