Skip to main content

engine_getPayloadBodiesByHashV1

Given block hashes returns bodies of the corresponding execution payloads

Params

(1)

1. Array of block hashes (required)

array[string]

Result

(Execution payload bodies)
array of:
transactions
array[string]
required
withdrawals
array[Withdrawal object V1] or null
index
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
validatorIndex
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
address
string
required
Match pattern:
^0x[0-9,a-f,A-F]{40}$
amount
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$

Errors

CodeMessage
-38004Too large request

Params

Array of block hashes


Request

await window.ethereum.request({
"method": "engine_getPayloadBodiesByHashV1",
"params": [
null
]
});