⚡ We welcome businesses to test our enterprise-grade service

bcn
Bytecoin (BCN)

Method: POST sync_mem_pool

dropdown

方法 RPC sync_mem_pool 例如 Bytecoin (BCN)

POST sync_mem_pool

返回本地和网络内存池之间的差异。 接受一系列已知交易阵列。

Parameters

known_hashes - 字符串数组

本地内存池中的交易数组。 应发送分类。

Request

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


Response

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