engine_forkchoiceUpdatedV4
Updates the forkchoice state
Parameters (by position)
Forkchoice state object required
Forkchoice state object V1
Show Forkchoice state object
Forkchoice state objectForkchoice state fields
-
headBlockHash
stringHead block hash
Match pattern:
^0x[0-9a-f]{64}$
-
safeBlockHash
stringSafe block hash
Match pattern:
^0x[0-9a-f]{64}$
-
finalizedBlockHash
stringFinalized block hash
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
true
Payload attributes object
Payload attributes object V4
Show Payload attributes object
Payload attributes objectPayload attributes fields
-
timestamp
stringTimestamp
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
prevRandao
stringPrevious randao value
Match pattern:
^0x[0-9a-f]{64}$
-
suggestedFeeRecipient
stringSuggested fee recipient
Match pattern:
^0x[0-9a-fA-F]{40}$
-
withdrawals
array<object>Withdrawal object V1
Show
withdrawalsobjectwithdrawalsfields-
index
stringrequiredWithdrawal index
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
validatorIndex
stringrequiredValidator index
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
address
stringrequiredWithdrawal address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
amount
stringrequiredWithdrawal amount
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
additionalProperties
true
-
-
parentBeaconBlockRoot
stringParent beacon block root
Match pattern:
^0x[0-9a-f]{64}$
-
slotNumber
stringSlot number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
additionalProperties
true
Result
Response object object
Forkchoice updated response
Show Response object object
Response object objectResponse object fields
-
payloadStatus
objectrequiredPayload status
Show
payloadStatusobjectpayloadStatusfields-
status
stringrequiredSet of possible values is restricted to VALID, INVALID, SYNCING
Allowed values:
VALIDINVALIDSYNCING
-
latestValidHash
stringThe hash of the most recent valid block
Match pattern:
^0x[0-9a-f]{64}$
-
validationError
stringValidation error message
-
additionalProperties
true
-
-
payloadId
stringPayload id
Match pattern:
^0x[0-9a-f]{16}$
-
additionalProperties
true
Errors
Error code: -38002
-
code
-38002
-
message
Invalid forkchoice state
Error code: -38003
-
code
-38003
-
message
Invalid payload attributes
Error code: -32602
-
code
-32602
-
message
Invalid params
Error code: -38005
-
code
-38005
-
message
Unsupported fork