⚡ We welcome businesses to test our enterprise-grade service

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST send_alert

dropdown

方法 RPC send_alert 例如 Nervos Network (CKB)

POST send_alert

Method not allowed

发送警报。

Parameters

alert - 警报

格式的警报对象: - id- wallid-警报ID-取消-AlertID-取消先前发送警报-Min_version -String | null-可选设置目标客户端的最小版本。 -max_version-字符串| null-可选设置目标客户端的最大版本。 - 优先级 - 警报优先级 - 警报以优先级为优先级,最高第一 - 消息 - 字符串 - 警报消息-Notess_until -Timestamp -Timestamp-此通知在此时间戳 - 签名 - JSONBYTES的数组之后到期 - 所需签名列表。 AlertID和AlertRiority是32位未签名的整数类型,编码为JSON中的0x预定装置的HEX字符串

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