bcn

Bytecoin (BCN)

Method: POST sync_mem_pool

dropdown
POST

sync_mem_pool

Returns difference between local and network memory pool. Accepts a sorted array of known transactions.

Parameters

known_hashes - array of string

Array of transactions in local memory pool. Should be sent sorted.

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