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

ckb

Nevros (CKB)

Method: POST send_alert

dropdown
POST

send_alert

Method not allowed

Sends an alert.

Parameters

alert - alert

alert object in format of:

- id - alertID - alert id

- cancel - alertID - cancel previous sent alert

- min_version - string | null - Optionally set the minimal version of the target clients.

- max_version - string | null - Optionally set the maximal version of the target clients.

- priority - alertPriority - alerts are sorted by priority, highest first

- message - string - alert message

- notice_until - timestamp - the alert is expired after this timestamp

- signature - array of jsonBytes - The list of required signatures. AlertID and alertPriority are 32-bit unsigned integer types encoded as the 0x-prefixed hex string in JSON

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


Response

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