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: pages/express-relay/integrate-as-searcher.mdx
+48-4Lines changed: 48 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,14 @@ Searchers can connect to the server via WebSocket to reduce latency and subscrib
46
46
```bash copy
47
47
{
48
48
"id": "1",
49
-
"method": "subscribe",
49
+
"method": "subscribe", // Name of the server method to invoke
50
50
"params": {
51
51
"chain_ids": ["op_sepolia"]
52
52
}
53
53
}
54
54
```
55
+
56
+
Consult [`Websocket API reference`](./websocket-api-reference.mdx) for a complete list of methods and parameters.
55
57
</Tabs.Tab>
56
58
</Tabs>
57
59
@@ -100,6 +102,8 @@ Searchers can submit bids through an HTTP POST call to the `/v1/bids` endpoint.
100
102
"amount": "10",
101
103
}
102
104
```
105
+
106
+
TODO: Explain the fields here.
103
107
</Tabs.Tab>
104
108
<Tabs.Tab>
105
109
@@ -125,14 +129,54 @@ A successful response to a bid submission has the following schema:
125
129
126
130
```bash copy
127
131
{
128
-
"id": "1", // websocket request id
132
+
"id": "1", // Websocket request id
129
133
"status": "success",
130
134
"result": {
131
-
"id": "beedbeed-b346-4fa1-8fab-2541a9e1872d", //bid id
135
+
"id": "beedbeed-b346-4fa1-8fab-2541a9e1872d", // Bid id
132
136
"status": "OK"
133
137
}
134
138
}
135
139
```
140
+
141
+
Consult [`Websocket API reference`](./websocket-api-reference.mdx) for more details.
136
142
</Tabs.Tab>
137
143
</Tabs>
138
-
</Steps>
144
+
</Steps>
145
+
146
+
147
+
Searchers are **recommended** to source opportunities via the opportunity endpoints and construct transactions intended for the `OpportunityAdapter`.
148
+
However, searchers can use custom contracts to execute transactions if they prefer.
149
+
If searchers use custom contracts, they can still use the Express Relay server to source opportunities and craft bids based on the opportunity details.
150
+
151
+
Check the following example of a custom contract that executes liquidation transactions:
0 commit comments