Skip to main content

engine_getPayloadBodiesByRangeV2

Given a range of block numbers returns bodies of the corresponding execution payloads including block access lists

Parameters (by position)

Starting block number string required


Number of blocks to return string required


Result

Execution payload bodies array<object>

Execution payload body object V2


Show Execution payload bodies object

Execution payload bodies fields

  • transactions array<string> required

    hex encoded bytes

    Match pattern: ^0x[0-9a-f]*$


  • blockAccessList string or null

    RLP-encoded block access list as defined in EIP-7928, or null if unavailable


    Show Option 1 hex encoded bytes string

    hex encoded bytes fields

    RLP-encoded block access list as defined in EIP-7928, or null if unavailable

    blockAccessList string

    RLP-encoded block access list as defined in EIP-7928, or null if unavailable

    Match pattern: ^0x[0-9a-f]*$


    Show Option 2 Block access list null

    Block access list fields

    RLP-encoded block access list as defined in EIP-7928, or null if unavailable

    blockAccessList null

    RLP-encoded block access list as defined in EIP-7928, or null if unavailable


  • additionalProperties true


Errors

Error code: -38004

  • code

    -38004

  • message

    Too large request

Examples

engine_getPayloadBodiesByRangeV2 example

Request

{
"params": [
"0x20",
"0x2"
]
}

Response

[
{
"transactions": [
"0xf865808506fc23ac00830124f8940101010101010101010101010101010101010101018031a02c4d88bfdc2f6dbf82c33d235c4e785e9fc23b2d0fc7b9d20fc5e9674f1f9d15a016d6d69b925cf26128683ab4a096e196fbb1142d6c6d4e8d3481b9bef1bd0f65"
],
"withdrawals": [
{
"index": "0xf0",
"validatorIndex": "0xf0",
"address": "0x00000000000000000000000000000000000010f0",
"amount": "0x1"
}
],
"blockAccessList": null
},
{
"transactions": [
"0xf865108506fc23ac00830124f8940101010101010101010101010101010101010101018031a0d9712a3c40ae85aea4ad1bd95a0b7cc7bd805189a9e2517403b11a00a1530f81a053b53b0267a6dcfe9f9a1652307b396b3e8a65e65707a450e60c92baefdbcfbe"
],
"withdrawals": [
{
"index": "0xf1",
"validatorIndex": "0xf1",
"address": "0x00000000000000000000000000000000000010f1",
"amount": "0x1"
}
],
"blockAccessList": "0xf8daf8d8f8d6a000000000000000000000000000000000000000000000000000000000000000a0f8a7a05555555555555555555555555555555555555555555555555555555555555555a06666666666666666666666666666666666666666666666666666666666666666a07777777777777777777777777777777777777777777777777777777777777777"
}
]