You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/flashbots-protect/mev-share.mdx
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import ProtectButton from '@site/src/components/ProtectButton';
10
10
11
11
MEV-Share enables users to reclaim up to 90% of the MEV generated by their transactions, the rest of which is paid to searchers and builders. By default, transactions from Protect users are directed to the Flashbots [MEV-Share Node](/flashbots-mev-share/introduction), which facilitates this return. Users are automatically connected to the [Stable](/flashbots-protect/mev-share#stable-configuration) configuration, a setting continuously optimized by Flashbots to balance efficient execution and protection against harmful MEV. This document provides a guide on the mechanism and various configurations of MEV-Share.
12
12
13
-
Advanced users can exert more control over their transactions and preferences through the advanced panel or by manually configuring their Protect RPC request.
13
+
Advanced users can customize their transactions and preferences through the advanced panel or by manually configuring their Protect RPC request.
14
14
15
15
<ProtectButton />
16
16
@@ -21,7 +21,7 @@ Advanced users can exert more control over their transactions and preferences th
21
21
The Stable configuration is the default configuration for Protect RPC. No query parameters are specified to use it.
22
22
23
23
```url
24
-
https://rpc.flashbots.net
24
+
https://rpc.flashbots.net/fast
25
25
```
26
26
27
27
Currently, this configuration shares the following information:
@@ -30,7 +30,7 @@ Currently, this configuration shares the following information:
30
30
-`default_logs` Partial logs (the pool id and the fact that a swap was made) for curve, balancer, and uniswapV2/V3-style trades
31
31
- Transactions are only forwarded to the Flashbots block builder
32
32
33
-
This may change over time as we gather more data and fine-tune the configuration to maximize benefits.
33
+
This may change as the configuration is tuned to maximize benefits.
34
34
35
35
### Max Privacy
36
36
@@ -50,15 +50,15 @@ To use Protect with the maximum kickback, set _all_ hints in your Protect RPC UR
This configuration provides searchers with comprehensive details about your transaction, giving them better chance to identify more MEV opportunities and to return more MEV kickback to you.
53
+
This configuration provides searchers with comprehensive details about your transaction, giving them a better chance to identify more MEV opportunities and return MEV refunds.
54
54
55
55
## Examples
56
56
57
57
Here are some examples of configurations that you might choose, depending on your goals.
| Max Privacy |`https://rpc.flashbots.net?hint=hash`|
63
63
| Max Kickback |`https://rpc.flashbots.net/?hint=calldata&hint=contract_address&hint=function_selector&hint=logs&hint=hash`|
64
64
| Add Builders (share with other builders for faster inclusion) |`https://rpc.flashbots.net?builder=flashbots&builder=XYZ`|
@@ -70,7 +70,7 @@ The Protect RPC uses query parameters within the URL to convey your preferences.
70
70
71
71
### Hints
72
72
73
-
To customize your hint setup, use the hint parameter to control the visibility of your transaction data to searchers. If no hints are provided, the default [Stable](/flashbots-protect/mev-share#stable-configuration) hint configuration will be used. If you specify one or more hints, any hint that is _not_ included will be disabled.
73
+
To customize your hint setup, use the hint parameter to control the visibility of your transaction data to searchers. The default [Stable](/flashbots-protect/mev-share#stable-configuration) hint configuration will be used if no hints are provided. If you specify one or more hints, any hint that is _not_ included will be disabled.
This configuration shares the calldata, logs, and hash of your transaction with searchers. It does not share the contract address or function selector.
83
+
This configuration shares calldata, logs, and transaction hash with searchers. It does not share the contract address or function selector.
84
84
85
85
### Builders
86
86
87
-
To designate the builders who will receive your transactions, use the `builder` parameter. This parameter can be repeated multiple times to include multiple builders. The builders listed below are currently supported.
87
+
Designate which builders will receive your transaction with the `builder` parameter. This parameter can be repeated multiple times to include different builders. The builders listed below are currently supported.
88
88
89
89
Note that all transactions are shared with the Flashbots block builder, even if it is not explicitly specified.
90
90
@@ -96,22 +96,24 @@ It's important to understand that while adding more builders can increase your t
96
96
https://rpc.flashbots.net?builder=ABC&builder=XYZ
97
97
```
98
98
99
-
This configuration sends your transaction to the ABC block builder and the XYZ block builder, as well as the Flashbots block builder.
99
+
This configuration sends your transaction to ABC block builder, XYZ block builder, and Flashbots block builder.
100
100
101
101
### Refunds
102
102
103
-
You can tailor your refund settings using the refund parameter. This determines the distribution of the searcher's payment among different addresses if your transaction is bundled. If not specified, the transaction originator (tx.origin) will by default receive 90% of the searcher's payment.
103
+
You can tailor your refund settings using the refund parameter. This determines the distribution of the searcher's payment among different addresses for bundled transactions. If not specified, the transaction originator (tx.origin) will by default receive 90% of the searcher's payment.
104
104
105
-
The refund parameter contains two colon-separated values: an address for the refund and the percentage of the searcher's payment to be refunded. To distribute the payment across multiple addresses, append a new refund parameter for each.
105
+
The refund parameter contains two colon-separated values: an address for the refund and the percentage of the searcher's payment to be refunded. To distribute the payment across multiple addresses, append a new refund parameter for each address.
106
106
107
107
Here is an example of a refund parameter that sends 10% of the searcher's payment to the address `userAddr`:
108
108
109
-
```url
109
+
```URL
110
110
https://rpc.flashbots.net?refund=userAddr:10
111
111
```
112
112
113
-
All percentages in the refund parameters must total less than 100. The remaining percentage, inferred from 100 - total refund percentages, is the payment to the validator. Note that keeping a larger percentage of the refund may result in longer inclusion times, because it reduces the payment to the validator.
113
+
The sum of all refund percentages must be less than 100. The remaining percentage, inferred from 100 - total refund percentages, is the payment to the validator.
114
+
115
+
**Note**: Keeping a larger percentage of the refund may result in longer block inclusion times as it reduces the payment to the validator.
114
116
115
117
### Priority fee
116
118
117
-
When sending private transaction to rpc endpoint you should set priority fee (tips) to be strictly greater than zero. Transactions with 0 priority fee will not be shared with block builders and included onchain, unless they are bundled by a searcher via MEV-Share.
119
+
When sending a private transaction to an RPC endpoint, the priority fee (tips) should be greater than zero. A transaction with a 0 priority fee will not be shared with block builders and will only be included on-chain if a searcher bundles them via MEV-Share.
0 commit comments