Skip to content

Latest commit

 

History

History
77 lines (66 loc) · 6.01 KB

findById.md

File metadata and controls

77 lines (66 loc) · 6.01 KB

< EON API Documentation

block/findById

Returns the block with the specified ID, together with its height in the blockchain

Parameters

Name Type Required Description
blockId String yes Block ID

Example request

 curl -sX POST 'http://127.0.0.1:9085/block/findById' -H 'Content-Type: application/json' -H 'accept: application/json' -d '{"blockId":"f4d983c008a5352c44a188d9a8d8490a85d2777b00c52976848787ef042f89c6"}'

Example response

{
    "result" : {
        "blockHex" : "024c7ad72fcbfaf74eab72fd3e082d14efc0e4479f0e581eb454446f373b311d11dcc485c80cbbb1c23b424a4529f68bc3caceac208140bd053685bab6c6e2fe67f7a7efd73370ec662c19fcab36d755f81cf4b08b0fd23cee3578358f49d19540660a40320c808084af5f08010d9f9e9e8f56a6ec5418304652ad96890b37bca65310e7a32456a75824873b0f00f9c6e8a22d2d401dbf2c97751bb3e33b1f9171cba5978a4cfee0c04fbf8b4ad4016d669978445d55e67aa9d0f19a1d92f7b18415f45b16b9d748ecadec29bdf3fe010ac631d99b7a1063dd0a99839c9b76f2b11106eaed0dd4c14a1b96e1d58b103f14f5db1650cf20fa98f0736781c1edc70afa4b182fa027a8a62c97770ea4271f001c3e39a850a74aa351dc323f921ba215122389027dacaa3b79c030cf6c90582cbc68f594067f0ac55e4292e936732059b727763e3e46d806d62f86227b1fc31f04bdfb773c6a8ef6197c588d25323bf9d3a789476fed797d823911e55dbc072956e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421000000000000000000000000000000000000000000000000000000000000000072b4a0894e9f54c3ac21961e00d40d029cb47e433d349c28de8de779c831a36456e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b42129d52220a66ab8ee0547b4f3312c9448aa645f920a04a817c8000200080098968000000000000000000000000000000000000000000000000000000000000000000056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b42100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c1e8339e025433b9d08f797e199339d86bdf2ef933a432b9b44f999a924e9de91bd76bf605d467874af9d163cd9b63aa467ed89a58b8e625b1a10d321567b30c00000000",
        "block" : {
        "header" : {
            "version" : 2,
            "parentId" : "4c7ad72fcbfaf74eab72fd3e082d14efc0e4479f0e581eb454446f373b311d11",
            "timestamp" : 1686155566,
            "forgingStakeInfo" : {
            "blockSignPublicKey" : {
                "publicKey" : "bbb1c23b424a4529f68bc3caceac208140bd053685bab6c6e2fe67f7a7efd733"
            },
            "vrfPublicKey" : {
                "publicKey" : "70ec662c19fcab36d755f81cf4b08b0fd23cee3578358f49d19540660a40320c80"
            },
            "stakeAmount" : 100000000
            },
            "forgingStakeMerklePath" : "08010d9f9e9e8f56a6ec5418304652ad96890b37bca65310e7a32456a75824873b0f00f9c6e8a22d2d401dbf2c97751bb3e33b1f9171cba5978a4cfee0c04fbf8b4ad4016d669978445d55e67aa9d0f19a1d92f7b18415f45b16b9d748ecadec29bdf3fe010ac631d99b7a1063dd0a99839c9b76f2b11106eaed0dd4c14a1b96e1d58b103f",
            "vrfProof" : {
            "vrfProof" : "14f5db1650cf20fa98f0736781c1edc70afa4b182fa027a8a62c97770ea4271f001c3e39a850a74aa351dc323f921ba215122389027dacaa3b79c030cf6c90582cbc68f594067f0ac55e4292e936732059b727763e3e46d806d62f86227b1fc31f"
            },
            "vrfOutput" : {
            "bytes" : "04bdfb773c6a8ef6197c588d25323bf9d3a789476fed797d823911e55dbc0729"
            },
            "sidechainTransactionsMerkleRootHash" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "mainchainMerkleRootHash" : "0000000000000000000000000000000000000000000000000000000000000000",
            "stateRoot" : "72b4a0894e9f54c3ac21961e00d40d029cb47e433d349c28de8de779c831a364",
            "receiptsRoot" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "forgerAddress" : {
            "address" : "29d52220a66ab8ee0547b4f3312c9448aa645f92"
            },
            "baseFee" : 20000000000,
            "gasUsed" : 0,
            "gasLimit" : 10000000,
            "ommersMerkleRootHash" : "0000000000000000000000000000000000000000000000000000000000000000",
            "ommersCumulativeScore" : 0,
            "feePaymentsHash" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "logsBloom" : {
            "bytes" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
            },
            "signature" : {
            "signature" : "c1e8339e025433b9d08f797e199339d86bdf2ef933a432b9b44f999a924e9de91bd76bf605d467874af9d163cd9b63aa467ed89a58b8e625b1a10d321567b30c"
            },
            "id" : "f4d983c008a5352c44a188d9a8d8490a85d2777b00c52976848787ef042f89c6"
        },
        "sidechainTransactions" : [ ],
        "mainchainBlockReferencesData" : [ ],
        "mainchainHeaders" : [ ],
        "ommers" : [ ],
        "timestamp" : 1686155566,
        "parentId" : "4c7ad72fcbfaf74eab72fd3e082d14efc0e4479f0e581eb454446f373b311d11",
        "id" : "f4d983c008a5352c44a188d9a8d8490a85d2777b00c52976848787ef042f89c6",
        "size" : 919
        },
        "height" : 329027
    }