⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST setlogfilter

dropdown

方法 RPC setlogfilter 例如 Zcash (ZEC)

POST setlogfilter

Method not allowed

设置用于选择要记录事件的过滤器。

过滤器是指令列表。

每个指令的语法为:target [span {field = value}] = last

默认过滤器,从-debug = target标志派生,为:错误,main = info

在此处传递有效的过滤器将替换现有的过滤器。

传递一个空字符串会将过滤器重置为默认值。

Parameters

newFilterDirectives - 细绳

新的日志过滤器。

Request

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


Response

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