Home

Get compact block filters.

GET
https://kmdbook.nownodes.io/api/v2/block-filters

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

ApiKeyAuthApiKeyAuth

X-API-Key string

NOWNodes API key passed in the api-key header.

Returns compact block filters for the script type configured on this Blockbook instance. Provide either lastN or a from/to range. When to is omitted for a range, the current best height is used.

Load estimate: High for wide ranges; work and payload grow linearly with the number of requested filters.

live-verified behavior:

  • Compact block filters are not configured on the KMD instance: requests fall through to the /api/ index handler and return HTTP 200 with the status object (live capture, both with scriptType=taproot and with an empty scriptType).

Parameters

scriptTypestringrequiredquery

Script type configured for block filters on this instance, for example taproot.

lastNinteger>= 1query

Return filters for the last N blocks.

frominteger>= 0query

First block height in the requested range.

tointeger>= 0query

Last block height in the requested range. Defaults to the current best height when omitted.

Response

200OK

Block filters keyed by block height.

401Unauthorized

Missing or invalid API key (plain text).