curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getblockfilter",
"params": [
"000000000000000000100c3c4b0b07a64612385408f6c7d97c422a5a0c1d859d",
"basic"
],
"id": 1
}'
{
"result": {},
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getblockfilter",
"params": [
"000000000000000000100c3c4b0b07a64612385408f6c7d97c422a5a0c1d859d",
"basic"
],
"id": 1
}'
{
"result": {},
"error": {},
"id": 123
}
getblockfilter
method retrieves a BIP 157 content filter for a particular block.
blockhash
(required) — the hash of the blockfiltertype
(required) — the type of filter to retrieve, currently only basic
is supportedresult
— an object containing the block filter with the following fields:
filter
— the hex-encoded filter dataheader
— the hex-encoded filter headererror
— an object containing an error message if an error occurred, otherwise null
id
— an integer representing the ID of the request, used to match requests with responsesgetblockfilter
method allows retrieving these filters for a specific block.
For example, a light wallet might use getblockfilter
to check if it needs to download a particular block to search for wallet transactions, reducing bandwidth and processing requirements compared to downloading every block.The BIP 157 content filter for the block
The response is of type object
.
Was this page helpful?