Skip to main content

/streams/rest/v1/streams/test_filter REST Method

Test a filter.

Updated on
May 09, 2024

/streams/rest/v1/streams/test_filter REST Method

Body Parameters

network
string
REQUIRED
The network for this stream. ENUM: "arbitrum-mainnet", "arbitrum-sepolia", "avalanche-fuji", "avalanche-mainnet", "base-mainnet", "base-sepolia", "bera-mainnet", "bera-bartio", "bitcoin-mainnet", "blast-mainnet", "blast-sepolia", "bnbchain-mainnet", "bnbchain-testnet", "camp-sepolia", "celo-mainnet", "cyber-mainnet", "cyber-sepolia", "ethereum-holesky", "ethereum-mainnet", "ethereum-sepolia", "fantom-mainnet", "fraxtal-mainnet", "gnosis-mainnet", "kaia-mainnet", "kaia-testnet", "imx-mainnet", "imx-testnet", "ink-mainnet", "ink-sepolia", "mantle-mainnet", "mantle-sepolia", "mode-mainnet", "morph-holesky", "nova-mainnet", "optimism-mainnet", "optimism-sepolia", "omni-omega", "polygon-mainnet", "polygon-amoy", "race-mainnet", "race-testnet", "redstone-mainnet", "scroll-mainnet", "scroll-testnet", "story-testnet", "tron-mainnet", "xai-mainnet", "xai-sepolia", "zkevm-mainnet", "zksync-mainnet", "zksync-sepolia", "zora-mainnet"
dataset
string
REQUIRED
The dataset for this stream. ENUM: "block", "block_with_receipts", "receipts", "logs", "transactions", "trace_blocks", "debug_traces", "block_with_receipts_debug_trace", "block_with_receipts_trace_block"
filter_function
string<base64>
REQUIRED
JS/ECMAScript compliant filter encoded in base64.
block
string
REQUIRED
The block number to test against.

Returns

result
string
The result of the filter test.
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free