Skip to content

Commit

Permalink
Document engine_getBlobsV1
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandra Tran <[email protected]>
  • Loading branch information
Alexandra Tran committed Oct 4, 2024
1 parent 370ea81 commit 3ab8cd9
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions docs/public-networks/reference/engine-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,64 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"engine_forkchoiceUpdatedV1","par

</Tabs>

### `engine_getBlobsV1`

Returns the blobs corresponding to the specified blob versioned hashes.

#### Parameters

`blobHashes`: *array* of *strings* - Array of blob versioned hashes

#### Returns

`engineGetBlobsResultV1`: *array* of *objects* - Array of blob and proof objects

<Tabs>

<TabItem value="curl HTTP" label="curl HTTP" default>

```bash
curl -X POST --data '{"jsonrpc":"2.0","method":"engine_getBlobsV1","params":[["0x000657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c444014"]],"id":1}' http://127.0.0.1:8550
```

</TabItem>

<TabItem value="wscat WS" label="wscat WS">

```json
{
"jsonrpc": "2.0",
"method": "engine_getPayloadBodiesByHashV1",
"params": [
[
"0x000657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c444014"
]
],
"id": 67
}
```

</TabItem>

<TabItem value="JSON result" label="JSON result">

```json
{
"jsonrpc": "2.0",
"id": 67,
"result": [
{
"blob": "0x722662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a503ae5c198d17634e79059c2cd735491...",
"proof": "0x80c5f2e1eb23939cf3600f61872e3e9964d0acafb440634e530d6139a193b889c56a0c07d737729dbe0626706fc9f25f"
}
]
}
```

</TabItem>

</Tabs>

### `engine_getPayloadBodiesByHashV1`

Returns the bodies of the execution payloads corresponding to the specified block hashes.
Expand Down

0 comments on commit 3ab8cd9

Please sign in to comment.