⚡ Dedicated Nodes for ETH, BSC, MATIC & other Blockchains at a Reduced Price!

ckb

Nevros (CKB)

Method: POST set_ban

dropdown
POST

set_ban

Method not allowed

Inserts or deletes an IP/Subnet from the banned list

Parameters

address - string

The IP/Subnet with an optional netmask (default is /32 = single IP). Examples: - “192.168.0.2” bans a single IP - “192.168.0.0/24” bans IP from “192.168.0.0” to “192.168.0.255”.

command - string

insert to insert an IP/Subnet to the list, delete to delete an IP/Subnet from the list.

ban_time - timestamp | null

Time in milliseconds how long (or until when if [absolute] is set) the IP is banned, optional parameter, null means using the default time of 24h

absolute - boolean | null

If set, the ban_time must be an absolute timestamp in milliseconds since epoch, optional parameter.

reason - string | null

Ban reason, optional parameter.

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"
}