Skip to main content

engine_getPayloadV2

Obtains execution payload from payload build process

Params

(1)

1. Payload id (required)

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

Result

(Response object)
executionPayload
required
parentHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
feeRecipient
string
required
Match pattern:
^0x[0-9,a-f,A-F]{40}$
stateRoot
string
required
Match pattern:
^0x[0-9a-f]{64}$
receiptsRoot
string
required
Match pattern:
^0x[0-9a-f]{64}$
logsBloom
string
required
Match pattern:
^0x[0-9a-f]{512}$
prevRandao
string
required
Match pattern:
^0x[0-9a-f]{64}$
blockNumber
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
gasLimit
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
gasUsed
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
timestamp
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
extraData
string
required
Match pattern:
^0x[0-9a-f]{0,64}$
baseFeePerGas
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,31})|0$
blockHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
transactions
array[string]
required
blockValue
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,31})|0$

Errors

CodeMessage
-38001Unknown payload

Params

Payload id


Request

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