engine_forkchoiceUpdatedV5
Updates the forkchoice state
Parameters (by position)
Forkchoice state object required
Forkchoice state object V1
Show Forkchoice state object
Forkchoice state objectForkchoice state fields
-
finalizedBlockHash
stringFinalized block hash
Match pattern:
^0x[0-9a-f]{64}$
-
headBlockHash
stringHead block hash
Match pattern:
^0x[0-9a-f]{64}$
-
safeBlockHash
stringSafe block hash
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
true
Payload attributes object or null
Show Option 1 Payload attributes object V5 object
Payload attributes object V5 objectPayload attributes object V5 fields
Payload attributes object
Payload attributes object V5
Show Payload attributes object
Payload attributes objectPayload attributes fields
-
inclusionListTransactions
array<string>requiredhex encoded bytes
Match pattern:
^0x([0-9a-f]{2})*$
-
parentBeaconBlockRoot
stringrequiredParent beacon block root
Match pattern:
^0x[0-9a-f]{64}$
-
prevRandao
stringrequiredPrevious randao value
Match pattern:
^0x[0-9a-f]{64}$
-
slotNumber
stringrequiredSlot number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
suggestedFeeRecipient
stringrequiredSuggested fee recipient
Match pattern:
^0x[0-9a-fA-F]{40}$
-
targetGasLimit
stringrequiredTarget gas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
timestamp
stringrequiredTimestamp
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
withdrawals
array<object>requiredWithdrawal object V1
Show
withdrawalsobjectwithdrawalsfields-
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})$
-
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})$
-
additionalProperties
true
-
-
additionalProperties
true
Show Option 2 Payload attributes null
Payload attributes nullCustody columns string or null
Show Option 1 16 hex encoded bytes string
16 hex encoded bytes string16 hex encoded bytes fields
Custody columns string
16 hex encoded bytes
Match pattern: ^0x[0-9a-f]{32}$
Show Option 2 Custody columns null
Custody columns nullResult
Response object object
Forkchoice updated response object V2
Show Response object object
Response object objectResponse object fields
-
payloadId
stringPayload id
Match pattern:
^0x[0-9a-f]{16}$
-
payloadStatus
objectrequiredPayload status
Show
payloadStatusobjectpayloadStatusfields-
inclusionListSatisfied
unknown or null
Show Option 1
Whether the payload satisfied the inclusion list constraintsbooleanShow Option 2
Whether the payload satisfied the inclusion list constraintsnull -
latestValidHash
string or null
Show Option 1
32 byte hex valuestringShow Option 2
The hash of the most recent valid blocknull -
status
stringrequiredSet of possible values is restricted to VALID, INVALID, SYNCING
Allowed values:
VALIDINVALIDSYNCING
-
validationError
string or null
Show Option 1
Validation error messagestringShow Option 2
Validation error messagenull -
additionalProperties
true
-
-
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
Error code: -38006
-
code
-38006
-
message
Too deep reorg
Examples
engine_forkchoiceUpdatedV5 example
Request
{
"params": [
{
"finalizedBlockHash": "0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"headBlockHash": "0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"safeBlockHash": "0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858"
},
{
"inclusionListTransactions": [
"0xf865808506fc23ac00830124f8940101010101010101010101010101010101010101018031a02c4d88bfdc2f6dbf82c33d235c4e785e9fc23b2d0fc7b9d20fc5e9674f1f9d15a016d6d69b925cf26128683ab4a096e196fbb1142d6c6d4e8d3481b9bef1bd0f65",
"0x02f86c0701843b9aca008506fc23ac00830124f89402020202020202020202020202020202020202020180c080a039409b4e5603dd8c3cf38232348661a8e99ac518396eeaa128ec9ec2a3eb8127a06b21ab956f5f138cb44fda1a9055bd08980ea4f8040d877c00dac025608d0d95"
],
"parentBeaconBlockRoot": "0x11f780a954bcba8889998e4e61deaae6388dd2391e9c810bd9c94962cc1eadc1",
"prevRandao": "0xc130d5e63c61c935f6089e61140ca9136172677cf6aa5800dcc1cf0a02152a14",
"slotNumber": "0x1",
"suggestedFeeRecipient": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"targetGasLimit": "0x1c9c380",
"timestamp": "0x64e7785b",
"withdrawals": [
{
"address": "0x00000000000000000000000000000000000010f0",
"amount": "0x1",
"index": "0xf0",
"validatorIndex": "0xf0"
},
{
"address": "0x00000000000000000000000000000000000010f1",
"amount": "0x1",
"index": "0xf1",
"validatorIndex": "0xf1"
}
]
},
"0xffffffffffffffffffffffffffffffff"
]
}
Response
{
"payloadId": "0x0000000021f32cc1",
"payloadStatus": {
"inclusionListSatisfied": true,
"latestValidHash": "0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"status": "VALID",
"validationError": null
}
}