/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/current

Query Parameters

ParameterTypeRequiredDescription
atstringNoBlock 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

FieldTypeDescription
leasePeriodIndexstringCurrent lease period index
endOfLeasePeriodstringBlock at which the current lease period ends
currentLeaseHoldersarrayParachain 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