getblockfilter

Returns the BIP 157 content filter for a specified block. Requires the blockfilterindex to be enabled.

Path Parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
blockhashstringRequiredformat: "^[a-fA-F0-9]{64}$"
The hash of the block.
filtertypeenumOptionalDefaults to basic
The type name of the filter. Currently only 'basic' is supported.
Allowed values:

Response

The block filter details.
filterstring or null

The hex-encoded filter data.

headerstring or null

The hex-encoded filter header.