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

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST set_ban

dropdown

方法 RPC set_ban 例如 Nervos Network (CKB)

POST set_ban

Method not allowed

从禁止列表中插入或删除IP/子网

Parameters

address - 细绳

具有可选NetMask的IP /子网(默认为 /32 =单个IP)。 示例: - “ 192.168.0.2”禁止单个IP-“ 192.168.0.0/24”禁止IP从“ 192.168.0.0”到“ 192.168.0.255”。

command - 细绳

插入以将IP/子网插入列表中,删除以从列表中删除IP/子网。

ban_time - 时间戳| 无效的

在毫秒中以毫秒为单位(或直到设置了[绝对]时)IP被禁止,可选参数,null表示使用24h的默认时间

absolute - 布尔| 无效的

如果设置,则BAN_TIME必须是自时代以来的绝对时间戳,可选参数。

reason - 字符串| 无效的

禁令原因,可选参数。

Request

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


Response

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