Skip to main content

engine_forkchoiceUpdatedV4

Updates the forkchoice state

Parameters (by position)

Forkchoice state object required

Forkchoice state object V1


Show Forkchoice state object

Forkchoice state fields

  • headBlockHash string

    Head block hash

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


  • safeBlockHash string

    Safe block hash

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


  • finalizedBlockHash string

    Finalized block hash

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


  • additionalProperties true


Payload attributes object

Payload attributes object V4


Show Payload attributes object

Payload attributes fields

  • timestamp string

    Timestamp

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


  • prevRandao string

    Previous randao value

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


  • suggestedFeeRecipient string

    Suggested fee recipient

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


  • withdrawals array<object>

    Withdrawal object V1


    Show withdrawals object

    withdrawals fields

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


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


    • additionalProperties true


  • parentBeaconBlockRoot string

    Parent beacon block root

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


  • slotNumber string

    Slot 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 fields

  • payloadStatus object required

    Payload status


    Show payloadStatus object

    payloadStatus fields

    • status string required

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

      Allowed values: VALID INVALID SYNCING


    • latestValidHash string

      The hash of the most recent valid block

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


    • validationError string

      Validation error message


    • additionalProperties true


  • payloadId string

    Payload 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