/paras/leases/current - Polkadot
This endpoint returns the current parachain lease period and the parachains that currently hold a lease. It is a relay-chain endpoint.
Endpoint
httpGET /paras/leases/currentQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| at | string | No | Block height or hash to query at |
Request
bashcurl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/paras/leases/current'example.js
javascriptconst response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/paras/leases/current');
const data = await response.json();
console.log(data);example.py
pythonimport requests
response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/paras/leases/current')
print(response.json())Response
json{
"at": {
"hash": "0x255bc00927df8d33d561792635cbc6bde480a0a505eef5ff28630ece3fc15b32",
"height": "6754362"
},
"leasePeriodIndex": "42",
"endOfLeasePeriod": "6800000",
"currentLeaseHolders": [
"2004",
"2006"
]
}Response Fields
| Field | Type | Description |
|---|---|---|
| leasePeriodIndex | string | Current lease period index |
| endOfLeasePeriod | string | Block at which the current lease period ends |
| currentLeaseHolders | array | Parachain IDs currently holding a lease |
Use Cases
- Slot Tracking: Track which parachains hold slots
- Lease Expiry: Read when the current lease period ends
- Ecosystem Tools: Monitor slot occupancy
- Analytics: Study parachain slot tenure