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: src/content/data-feeds/llms-full.txt
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6343,8 +6343,43 @@ Chainlink SVR uses forwarder contracts to route feed updates. You typically see
6343
6343
6344
6344
3. **callData**: The `callData` includes the parameters for `transmitSecondary()` on the aggregator contract. You can decode this if you need to extract the updated price when the onchain event is not emitted (details in the section below).
Below are code examples for setting up a listener that monitors the MEV-Share event stream for SVR feed updates. These examples show how to connect to the stream, filter for relevant transactions with the `6fadcf72` function selector, and process incoming events:
6347
6362
6363
+
The event stream is also expected to occasionally transmit transaction bundles. The bundle event has a similar format to the single transaction event, but with more than one transactions. Transactions will be bundled in nonce ascending order, meaning txs[0] has the lowest nonce and txs[len(txs)] has the highest. Below is an example of a bundle:
#### 3. Decode `callData` for `forward` and `transmitSecondary`
6349
6384
6350
6385
Once you've identified a potential SVR feed update transaction, you'll need to decode its payload. This step allows you to extract:
@@ -6470,6 +6505,33 @@ Below are code examples demonstrating how to construct and submit bundles to the
6470
6505
6471
6506
For gas management, simulations, and other advanced usage, see the official [Flashbots documentation](https://docs.flashbots.net/).
6472
6507
6508
+
Bidding for bundle events is very similar to single transaction events. As a searcher, you can append your transaction at the end of the bundle by using the bundle event hash just like you would with the single transaction event hash. Below is an example:
6509
+
6510
+
```json
6511
+
{
6512
+
"jsonrpc": "2.0",
6513
+
"method": "mev_sendBundle",
6514
+
"params": [
6515
+
{
6516
+
"version": "v0.1",
6517
+
"inclusion": {
6518
+
"block": "0x01",
6519
+
"maxBlock": "0x04"
6520
+
},
6521
+
"body": [
6522
+
{
6523
+
"hash": "0x_bundle_event_hash"
6524
+
},
6525
+
{
6526
+
"tx": "0x0213a...",
6527
+
"canRevert": false
6528
+
}
6529
+
]
6530
+
}
6531
+
]
6532
+
}
6533
+
```
6534
+
6473
6535
#### 7. Considerations
6474
6536
6475
6537
- **Competition**: Multiple searchers might detect the same liquidation. The best bid typically wins.
Copy file name to clipboardExpand all lines: src/content/data-feeds/svr-feeds/searcher-onboarding-ethereum.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,10 @@ Chainlink SVR uses forwarder contracts to route feed updates. You typically see
112
112
113
113
1.**callData**: The `callData` includes the parameters for `transmitSecondary()` on the aggregator contract. You can decode this if you need to extract the updated price when the onchain event is not emitted (details in the section below).
Below are code examples for setting up a listener that monitors the MEV-Share event stream for SVR feed updates. These examples show how to connect to the stream, filter for relevant transactions with the `6fadcf72` function selector, and process incoming events:
116
120
117
121
<Tabsclient:visible>
@@ -125,6 +129,10 @@ Below are code examples for setting up a listener that monitors the MEV-Share ev
125
129
</Fragment>
126
130
</Tabs>
127
131
132
+
The event stream is also expected to occasionally transmit transaction bundles. The bundle event has a similar format to the single transaction event, but with more than one transactions. Transactions will be bundled in nonce ascending order, meaning txs[0] has the lowest nonce and txs[len(txs)] has the highest. Below is an example of a bundle:
#### 3. Decode `callData` for `forward` and `transmitSecondary`
129
137
130
138
Once you've identified a potential SVR feed update transaction, you'll need to decode its payload. This step allows you to extract:
@@ -284,6 +292,10 @@ Below are code examples demonstrating how to construct and submit bundles to the
284
292
285
293
For gas management, simulations, and other advanced usage, see the official [Flashbots documentation](https://docs.flashbots.net/).
286
294
295
+
Bidding for bundle events is very similar to single transaction events. As a searcher, you can append your transaction at the end of the bundle by using the bundle event hash just like you would with the single transaction event hash. Below is an example:
0 commit comments