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 sync_mem_pool
返回本地和网络内存池之间的差异。 接受一系列已知交易阵列。
known_hashes
- 字符串数组
本地内存池中的交易数组。 应发送分类。
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": "sync_mem_pool", "params": {}, "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "added_raw_transactions": [], "added_transactions": [], "removed_hashes": [], "status": { "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 } } }