Skip to main content
Version: Next

engine_forkchoiceUpdatedV5

Updates the forkchoice state

Parameters (by position)​

Forkchoice state object required

Forkchoice state object V1


Show Forkchoice state object

Forkchoice state fields​

  • finalizedBlockHash string

    Finalized block hash

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


  • headBlockHash string

    Head block hash

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


  • safeBlockHash string

    Safe 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 fields​

Payload attributes object

Payload attributes object V5


Show Payload attributes object

Payload attributes fields​

  • inclusionListTransactions array<string> required

    hex encoded bytes

    Match pattern: ^0x([0-9a-f]{2})*$


  • parentBeaconBlockRoot string required

    Parent beacon block root

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


  • prevRandao string required

    Previous randao value

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


  • slotNumber string required

    Slot number

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


  • suggestedFeeRecipient string required

    Suggested fee recipient

    Match pattern: ^0x[0-9a-fA-F]{40}$


  • targetGasLimit string required

    Target gas limit

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


  • timestamp string required

    Timestamp

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


  • withdrawals array<object> required

    Withdrawal object V1


    Show withdrawals object

    withdrawals fields​

    • address string required

      Withdrawal address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • amount string required

      Withdrawal amount

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • index string required

      Withdrawal index

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • validatorIndex string required

      Validator 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 fields​

Payload attributes null


Custody columns string or null


Show Option 1 16 hex encoded bytes string

16 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 fields​

Custody columns null


Result​

Response object object

Forkchoice updated response object V2


Show Response object object

Response object fields​

  • payloadId string

    Payload id

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


  • payloadStatus object required

    Payload status


    Show payloadStatus object

    payloadStatus fields​

    • inclusionListSatisfied unknown or null


      Show Option 1 Whether the payload satisfied the inclusion list constraints boolean

      Whether the payload satisfied the inclusion list constraints fields​

      inclusionListSatisfied boolean


      Show Option 2 Whether the payload satisfied the inclusion list constraints null

      Whether the payload satisfied the inclusion list constraints fields​

      inclusionListSatisfied null


    • latestValidHash string or null


      Show Option 1 32 byte hex value string

      32 byte hex value fields​

      latestValidHash string

      32 byte hex value

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


      Show Option 2 The hash of the most recent valid block null

      The hash of the most recent valid block fields​

      latestValidHash null


    • status string required

      Set of possible values is restricted to VALID, INVALID, SYNCING

      Allowed values: VALID INVALID SYNCING


    • validationError string or null


      Show Option 1 Validation error message string

      Validation error message fields​

      validationError string


      Show Option 2 Validation error message null

      Validation error message fields​

      validationError null


    • 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
}
}