⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST setban

dropdown

方法 RPC setban 例如 Zcash (ZEC)

POST setban

Method not allowed

尝试从禁止列表中添加或删除IP/子网。

Parameters

ip(/netmask) - 细绳

具有可选的NetMask(默认为 /32 =单个IP)

command - 细绳

“添加”将IP/子网添加到列表中,“删除”以从列表中删除IP/子网。

bantime - 数字

选修的。

在几秒钟内的时间(或直到设置了[绝对]时)禁止IP(0或空的默认时间为24H,这也可以被-Bantime启动参数覆盖)

absolute - 布尔

选修的。

如果设定,则自1970年1月1日(格林尼治标准时间1月1日)以来,bantime必须在几秒钟内成为绝对的时间戳

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": "setban",
"params": [null, null, null, null],
"id": "getblock.io"}'


Response

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