---
name: getblockfilter
btcversion: 28.0.0
btcgroup: blockchain
permalink: en/doc/28.0.0/rpc/blockchain/getblockfilter/
---

getblockfilter "blockhash" ( "filtertype" )

Retrieve a BIP 157 content filter for a particular block.

Arguments:
1. blockhash     (string, required) The hash of the block
2. filtertype    (string, optional, default="basic") The type name of the filter

Result:
{                      (json object)
  "filter" : "hex",    (string) the hex-encoded filter data
  "header" : "hex"     (st