Skip to main content
API referenceSubnets

Subnet Lease

Last updated

GET
/api/v1/subnets/{netuid}/lease

Fetch the live subnet-lease state (#6719, part of the subnet-leasing/crowdloan-tracking epic #6717) — whether a subnet is currently under a lease and, if so, its terms + accumulated-but-undistributed alpha dividends, queried from the chain's own SubnetUidToLeaseId/SubnetLeases/AccumulatedLeaseDividends storage maps at request time with 120s KV cache. leased is null (not false) on RPC failure, distinct from a confirmed no-lease (leased:false).

Path Parameters

netuid*integer
Range0 <= value <= 65535

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/subnets/0/lease"
{  "data": {    "lease": {      "accumulated_dividends_alpha": 0.5,      "beneficiary": "example",      "coldkey": "example",      "cost_tao": 0.5,      "emissions_share_percent": 1,      "end_block": 5000000,      "hotkey": "example",      "lease_id": 1,      "netuid": 7    },    "leased": false,    "netuid": 7,    "queried_at": "2026-06-01T00:00:00.000Z",    "schema_version": 1  },  "meta": {    "artifact_path": "example",    "cache": "short",    "contract_version": "2026-06-29.1",    "generated_at": "2026-06-01T00:00:00.000Z",    "pagination": {      "collection": "example",      "cursor": 1,      "limit": 1,      "next_cursor": 1,      "order": "asc",      "returned": 1,      "sort": "example",      "total": 1    },    "published_at": "2026-06-01T00:00:00.000Z",    "source": "live-cron-prober",    "stale_contract": {      "built_under": "example",      "live": "example"    }  },  "ok": true,  "schema_version": 1}