/eth/v2/validator/blocks/{slot}

Produce a new block, without signature

Requests a beacon node to produce a valid block, which can then be signed by a validator.

Metadata in the response indicates the type of block produced, and the supported types of block will be added to as forks progress.

Parameters

NameRequiredTypeDetail
slotStringThe slot for which the block should be proposed.
randao_revealString (Query)The validator's randao reveal value
graffitiHex StringArbitrary data validator wants to include in a block.

Result

Return a valid block, which can then be signed by a validator.

Example

Request

curl <your-endpoint>/eth/v2/validator/blocks/4805049?randao_reveal=0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505

Return

On success

{
    "version": "BELLATRIX",
    "data": {
        "slot": "4805049",
        "proposer_index": "106487",
        "parent_root": "0x02edbff5fc26e71d1f8e70409e5b240a74e3f1bb9041a3951699943839b57c9c",
        "state_root": "0x825bd6046a61a3bd82fcbb5a0ca6fe4efe1a31eeda3d793a0888606f7170007b",
        "body": {
            "randao_reveal": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505",
            "eth1_data": {
                "deposit_root": "0xf3151229fbb14096fb9a105452380b5761d0ab1c3e24fca8cb748d045703f028",
                "deposit_count": "446990",
                "block_hash": "0x5da9251a40a905636db3cd22b8135f547ca4486ccc4369b2f166161c5887b5b6"
            },
            "graffiti": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "proposer_slashings": [],
            "attester_slashings": [],
            "attestations": [
                {
                    "aggregation_bits": "0xffffffffffffffffffffffffffffffffffffffffffffffffffff3f",
                    "data": {
                        "slot": "4805043",
                        "index": "20",
                        "beacon_block_root": "0xb5fd7671b0111c8d24f5fe9881480b91d80a06c5e0b820b8e07b9c0c56562b6b",
                        "source": {
                            "epoch": "150156",
                            "root": "0xefe8b6ebc564357337eb0e8ad52a33706b4a900408dd5f2f8839b04e64119f24"
                        },
                        "target": {
                            "epoch": "150157",
                            "root": "0x5f28076a5523d2007fadbf81f68c22b437c33d045b29b3911021827af599f1e4"
                        }
                    },
                    "signature": "0x8432bce7b1411ea40272ea356f1cbeb5082a26c8a1c4baf653a8661c0eebc3a47d99e1fdcef6f68f33d1b3cc12e52d47133d19f3f9745b7b4c6f2d068db3692d3db61486c3d6977988753d5af949f22ebf1b6b51b70aeb249d80bb886328d41e"
                },
                ...
            ],
            "transactions": [
                    "0xf9016b03850df84758008307a120947a250d5630b4cf539739df2c5dacb4c659f2488d80b90104791ac94700000000000000000000000000000000000000000000428e9dda3e24cd2c0000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e24b04dd7662b1acfd3f99b06b1cff695b2d7016000000000000000000000000000000000000000000000000000001838b3977b50000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ee2b297408063e0967096bafdcfd1278d5bf1b8a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc226a08143aecbe355318c72a882587a4f9d7a239e76d6eed6186b779f8aca23ad15faa0527861f6bb1367904f97f685e851e080e9c9d2d47de74689e8736d8a926beab8",
                    "0xf86b01850ba43b7400825208948b8a4abc707f16da24b795e3e46ed22975a9d32987a691cba6fdac008025a05667024fff2f861b5e9fbc0580bd398292e5aed3ff2de073374d12d56a7d5bb4a0225d57616589c77c0d11813ebc7001ef3ffe339acb48d089c662fb4999b02b37",
                    ...
                    ]
            }
        }
    }
}