Skip to main content

engine_getPayloadBodiesByHashV2

Given block hashes returns bodies of the corresponding execution payloads including block access lists

Parameters (by position)

Array of block hashes array<string> required

32 byte hex value

Match pattern: ^0x[0-9a-f]{64}$


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_getPayloadBodiesByHashV2 example

Request

{
"params": [
[
"0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c",
"0xfe88c94d860f01a17f961bf4bdfb6e0c6cd10d3fda5cc861e805ca1240c58553"
]
]
}

Response

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