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

btc
Bitcoin (BTC)

Method: POST ping

dropdown

方法 RPC ping 例如 Bitcoin (BTC)

POST ping

方法不允许

请求将 ping 发送到所有其他节点,以测量 ping 时间。

getpeerinfo、pingtime 和 pingwait 字段中提供的结果是十进制秒数。

Ping 命令与所有其他命令一起在队列中处理,因此它衡量处理积压,而不仅仅是网络 ping。

Parameters

-

Request

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


Response

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