dcr

Decred (DCR)

Method: POST getblockfilter

dropdown
POST

getblockfilter

Method not allowed

Retrieve a BIP 157 content filter for a particular block.

Parameters

blockhash - string, required

The block hash

filtertype - string, optional, default=basic

0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getblockfilter",
"params": ["000000009ec5dd6b53858593718cacdaaec989aaf9028c68013947224712682e", null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}