RPC get block record by height

From mojo_puzzler
Revision as of 15:48, 17 November 2023 by Gneale (talk | contribs) (Created page with "===== Return to: Chialisp ===== <big>Example:</big> <pre> curl --insecure --cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt --key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key -d '{ "height": 1002908 }' -H "Content-Type:application/json" -X POST https://localhost:8555/get_block_record_by_height | python -m json.tool </pre> <pre> { "block_record": { "challenge_block_info_hash": "0xdb3909f6aebe8cad513597ffd4d28fd446b39...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Return to: Chialisp

Example:

curl --insecure --cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt --key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key -d '{ "height": 1002908 }' -H "Content-Type:application/json" -X POST https://localhost:8555/get_block_record_by_height | python -m json.tool
{
    "block_record": {
        "challenge_block_info_hash": "0xdb3909f6aebe8cad513597ffd4d28fd446b3939604875da99a0809dcf6823274",
        "challenge_vdf_output": {
            "data": "0x000075906b0b048d08584e2895faeda3f7e0a88b6080a93f2e4dcd1c0d91c600ab470cc7dcefc32055021f0c0dcbfcead91ef37febb3aec28257dc63db9fef122919e1da378ed2288d33237b4ad42b5c0fff427012514be3951b359dac204f2c1f2d0100"
        },
        "deficit": 12,
        "farmer_puzzle_hash": "0x394618250cce9be1e375ef668e0e9be4c2e4f7b8e9cb2c05b2c0932bcd92108e",
        "fees": 0,
        "finished_challenge_slot_hashes": null,
        "finished_infused_challenge_slot_hashes": null,
        "finished_reward_slot_hashes": null,
        "header_hash": "0x017234ec14f09387abead2c6352aeae7fb70086d07583cc6c82f4edddcdc5d0b",
        "height": 1002908,
        "infused_challenge_vdf_output": {
            "data": "0x0300bb0f50f9d1d610421d94b968ac90e4335b3e1dde01cb76f2bd62ad57327c8ce145a7b40129b5d2df007f214f019a3f3fd30dfcc07a1e2002fc8da7d653d2fb25f08a6864cf78aa1e627d5fc79851e7fcf949c9b5571bb277c8fed2b408c3cc1c0200"
        },
        "overflow": false,
        "pool_puzzle_hash": "0x394618250cce9be1e375ef668e0e9be4c2e4f7b8e9cb2c05b2c0932bcd92108e",
        "prev_hash": "0x078557d7f61fe3716a7e8aab826e4fe1ac1bc6fa433ad2974833b7317f73bbcb",
        "prev_transaction_block_hash": "0x901ba06aff4bc4eb9747187282ba1eadd992ac8aab681c46f3f100572f681703",
        "prev_transaction_block_height": 1002904,
        "required_iters": 948992,
        "reward_claims_incorporated": [
            {
                "amount": 1750000000000,
                "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a000000000000000000000000000f4d98",
                "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba"
            },
            {
                "amount": 250000000001,
                "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb000000000000000000000000000f4d98",
                "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba"
            },
            {
                "amount": 1750000000000,
                "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a000000000000000000000000000f4d97",
                "puzzle_hash": "0x5b0505e3f90f5ba40a4eb50871b8a3c4f39af795389723286cdebd7706a4bcf5"
            },
            {
                "amount": 250000000000,
                "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb000000000000000000000000000f4d97",
                "puzzle_hash": "0x5b0505e3f90f5ba40a4eb50871b8a3c4f39af795389723286cdebd7706a4bcf5"
            },
            {
                "amount": 1750000000000,
                "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a000000000000000000000000000f4d96",
                "puzzle_hash": "0x6e1f10f39fbbc707dfcba852ae1a3a3334e78ac0dd22ec642a6c9974d8301318"
            },
            {
                "amount": 250000000000,
                "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb000000000000000000000000000f4d96",
                "puzzle_hash": "0x2f43b74608fb0ea78ba80cb19edba4f79540feba7e9e97a6dc63b2dd8d72c9ae"
            },
            {
                "amount": 1750000000000,
                "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a000000000000000000000000000f4d95",
                "puzzle_hash": "0x907491ca39c35bc1f9a6eda33f7c0f97a9f583975088dad7216f1edd79f522ae"
            },
            {
                "amount": 250000000000,
                "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb000000000000000000000000000f4d95",
                "puzzle_hash": "0x907491ca39c35bc1f9a6eda33f7c0f97a9f583975088dad7216f1edd79f522ae"
            }
        ],
        "reward_infusion_new_challenge": "0x567eb39fd5663e31f71b3e7bcd1a1151725f61021f54e8d827696f7a93700373",
        "signage_point_index": 3,
        "sub_epoch_summary_included": null,
        "sub_slot_iters": 135266304,
        "timestamp": 1634333331,
        "total_iters": 3705301629696,
        "weight": 1659338640
    },
    "success": true
}