bcn

Bytecoin (BCN)

Method: POST get_block_template

dropdown
POST

get_block_template

Get block template.

Parameters

wallet_address - string

None

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": "get_block_template",
"params": {"wallet_address": "238HrUqVy8DMxHRufGEt6o1qmomTHbUp55FndtK7ABEuc2hUJQZFGjMZXNtsKQaAaZiVgnBuJgcG2Lt1ZEKcjv5s6fwStLv"},
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blocktemplate_blob": "040919e7d1e2b7be455ac6aa46662567eaf66b849956b056a60b33c0bcae19be8fec0100f0d8fd89060000000000000000000000000000000000000000000000000000000000000000000000000101000000230321000000000000000000000000000000000000000000000000000000000000000000010001fffcc7920106b0b413025d8eee64168371316d0acca95e794c0d5b7a8eb99adefd35b2217d1ff30804ccc703026333b3e34aeae8bbb75ddc48547128285176cd4bd9ea3161cbdc01f807819ae7c0843d0219953535c7db44178ce9fb42f7a1df25a271b9bbc4f1583fe244fe5caf197e8780ade204026608045f05b1c92e73d920b1ff00a00036d74ed756fb9efaf2251b265d62240a80d293ad0302789fea1041d3d3f57e53d68179b8b7ccfca688f4647fa33463f604738eaa8ab9808cee891a021c73ea1fbaa67c2391c81b74b38a79745a9aa09443a2814e8ce9c38df644f2e826016013592b78f4cb6cc2fa70acf235622b1af2c65778c1fa1e6ebc3dc48ee752840403a08d0600",
        "cm_path": "",
        "cm_prehash": "",
        "difficulty": 12179287305,
        "height": 2401276,
        "previous_block_hash": "d5cf81e9aed7ae31e2cd6c0ae94a45ea71caaa2e7306b60e765893ef72796ce1",
        "reserved_offset": 0,
        "status": "OK",
        "top_block_hash": "19e7d1e2b7be455ac6aa46662567eaf66b849956b056a60b33c0bcae19be8fec",
        "transaction_pool_version": 1688
    }
}