-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cancelations/replacementUuid/revertMode for sbundles update
- Loading branch information
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Cancelling Bundles | ||
--- | ||
|
||
import CancelBundleRpc from '@site/docs/specs/mev-share/_mev_cancelBundle.mdx' | ||
|
||
|
||
In case original bundle contained `replacementUuid` you can cancel it using this endpoint. | ||
Note, cancelling a bundle via replacing it with incorrect bundle with the same `replacementUuid` is not guaranteeing that | ||
the original bundle will be cancelled. | ||
|
||
## Cancel bundle endpoint | ||
|
||
<CancelBundleRpc /> | ||
|
||
### Example body | ||
|
||
```json | ||
{"id":1,"jsonrpc":"2.0","method":"mev_cancelBundle","params":[{"replacementUuid":"123"},["beaverbuild.org","titan","rsync"]]} | ||
``` | ||
|
||
|
||
## Builders | ||
It is encouraged to use the same set of builders as the original bundle. This is to ensure that the bundle is cancelled correctly. | ||
In case you omitted second argument, bundle will still be cancelled but underlying operation will be less performant. | ||
List of builders that support bundle cancellation can be found [here](https://github.com/flashbots/dowg/blob/main/builder-registrations.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
```typescript | ||
{ | ||
jsonrpc: "2.0", | ||
id: string | number, | ||
method: "mev_cancelBundle", | ||
params: [ | ||
{ | ||
replacemendUuid: string, | ||
}, | ||
Array<string>, /* Array of builders, optional argument */ | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters