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

/

BNB Smart Chain (BSC)

bsc
BNB Smart Chain (BSC)

Method: POST shh_post

dropdown

方法 RPC shh_post 例如 BNB Smart Chain (BSC)

POST shh_post

方法不允许

发送悄悄话信息。

Parameters

from - 数据

60 字节 -(可选)发送者的身份。

to - 数据

60 字节 -(可选)接收者的身份。当出现时,耳语将加密消息,以便只有接收者才能解密。

topics - 数据数组

DATA 主题数组,供接收方识别消息。

payload - 数据

消息的有效负载。

priority - 数量

优先级的整数

ttl - 数量

以秒为单位的整数生存时间。

Request

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


Response

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