FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST get_status
获得有关Bytecoind状态的状态。 此方法支持长期填充。 如果您指定所有输入参数,并且它们等于ByteCoind的当前状态,则仅当其中一些更改时,您才会得到响应。
但是,如果您仅指定某些参数,则对其他参数的更改不会触发longpoll。 例如,如果您仅对Out Out_Peer_Count感兴趣,则只能在请求中指定Outsout_peer_count,并在Outsoun_peer_count更改时获取响应。
top_block_hash
- 细绳
选修的。
在以前的get_status响应中收到的值。
transaction_pool_version
- 享受
选修的。
在以前的get_status响应中收到的值。
incoming_peer_count
- 享受
选修的。
在以前的get_status响应中收到的值。
outgoing_peer_count
- 享受
选修的。
在以前的get_status响应中收到的值。
lower_level_error
- 细绳
选修的。
在以前的get_status响应中收到的值。
curl --location --request POST 'https://bcn.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "get_status", "params": {}, "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "incoming_peer_count": 0, "lower_level_error": "", "next_block_effective_median_size": 98872, "outgoing_peer_count": 8, "recommended_fee_per_byte": 100, "recommended_max_transaction_size": 98872, "top_block_cumulative_difficulty": 30676358330795090, "top_block_difficulty": 10361588328, "top_block_hash": "5099fb0b04b83d4f9862109608349d7a25938e6aa00b509366848589fe69917a", "top_block_height": 2403323, "top_block_timestamp": 1631799662, "top_block_timestamp_median": 1631795442, "top_known_block_height": 2403323, "transaction_pool_version": 2438 } }