Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for blockHash response for mev_sendBundle #7

Merged
merged 7 commits into from
May 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update for consistency
  • Loading branch information
Wazzymandias committed May 5, 2023
commit 12370fe0335063daffffd7023093639750077d1a
17 changes: 13 additions & 4 deletions specs/events/v0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

Events on MEV-Share are distributed via an SSE endpoint. Searchers listen to this endpoint to receive a stream of new events, which contain data they can use in their bundles.

<!-- TOC -->
* [event-stream](#event-stream)
* [Event Scheme](#event-scheme)
* [`hash`](#hash)
* [`logs`](#logs)
* [`tx`](#tx)
* [Stream Logic](#stream-logic)
<!-- TOC -->

## Event Scheme

```typescript
Expand All @@ -18,15 +27,15 @@ Events on MEV-Share are distributed via an SSE endpoint. Searchers listen to thi

_NOTE: Optional fields are marked with a `?`._

## `hash`
### `hash`

Hex-string of the transaction or bundle hash.

## `logs`
### `logs`

Array of JSON-encoded event logs emitted by executing the transaction.

## `tx`
### `tx`

Transactions from the event. If the event itself is a transaction, txs will only have one entry. Bundle events may have more.

Expand All @@ -35,7 +44,7 @@ Transactions from the event. If the event itself is a transaction, txs will only
| `functionSelector` | Hex-string | 4-byte function selector. |
| `callData` | Hex-string | Calldata of the transaction. |

## Stream Logic
### Stream Logic

Users subscribe to the stream by making an HTTP GET request on the stream endpoint.

Expand Down