Skip to main content

engine_exchangeCapabilities

Exchanges list of supported Engine API methods

Params

(1)

1. Consensus client methods (required)

array[string]

Result

(Execution client methods)
array[string]

Example

Request

await window.ethereum.request({
"method": "engine_exchangeCapabilities",
"params": [
[
"engine_exchangeTransitionConfigurationV1",
"engine_forkchoiceUpdatedV1",
"engine_getPayloadBodiesByHashV1",
"engine_getPayloadBodiesByRangeV1",
"engine_getPayloadV1",
"engine_newPayloadV1"
]
]
});

Result

[
"engine_getPayloadV1",
"engine_getPayloadV2",
"engine_executePayloadV1",
"engine_newPayloadV1",
"engine_newPayloadV2",
"engine_forkchoiceUpdatedV1",
"engine_forkchoiceUpdatedV2",
"engine_exchangeTransitionConfigurationV1",
"engine_getPayloadBodiesByHashV1",
"engine_getPayloadBodiesByRangeV1"
]

Params

Consensus client methods


Request

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