📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

grs
Groestlcoin (GRS)

Method: POST setban

dropdown

方法 RPC setban 例如 Groestlcoin (GRS)

POST setban

Method not allowed

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

Parameters

subnet - 字符串,需要

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

command - 字符串,需要

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

bantime - 数字,可选,默认值= 0

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

absolute - 布尔值,可选,默认值= false

如果设置,则曲线时间必须是在Unix时期表达的绝对时间戳)

Request

curl --location --request POST 'https://grs.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"
}