Skip to main content

/streams/rest/v1/streams/test_filter REST API Endpoint

Loading...

Updated on
Jul 28, 2025

/streams/rest/v1/streams/test_filter REST API Endpoint

Body Parameters

network
string
REQUIRED
Loading...
dataset
string
REQUIRED
Loading...
filter_function
string<base64>
REQUIRED
Loading...
block
string
REQUIRED
Loading...

Returns

result
string
Loading...
Request
1
curl -X POST \
2
"https://api.quicknode.com/streams/rest/v1/streams/test_filter" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY" \
6
-d $'{
7
"network": "ethereum-mainnet",
8
"dataset": "block",
9
"filter_function": "ZnVuY3Rpb24gbWFpbihkYXRhKSB7CiAgICB2YXIgbnVtYmVyRGVjaW1hbCA9IHBhcnNlSW50KGRhdGEuc3RyZWFtRGF0YS5udW1iZXIsIDE2KTsKICAgIHZhciBmaWx0ZXJlZERhdGEgPSB7CiAgICAgICAgaGFzaDogZGF0YS5zdHJlYW1EYXRhLmhhc2gsCiAgICAgICAgbnVtYmVyOiBudW1iZXJEZWNpbWFsCiAgICB9OwogICAgcmV0dXJuIGZpbHRlcmVkRGF0YTsKfQ==",
10
"block": "17811625"
11
}'
12
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free