Skip to content

Commit 2bda439

Browse files
committed
wip
1 parent 9979e89 commit 2bda439

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

pages/express-relay/integrate-as-searcher.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ Searchers **bid** on opportunities exposed by the Express Relay server.
88
The server exposes different endpoints for interaction, which can be used directly via HTTP, WebSocket, or one of the SDKS for convenience.
99

1010

11-
(TODO:)
12-
Searchers can integrate with the Express Relay server in two ways:
13-
- [Integrate with the auction server](./integrate-as-searcher/auction-server)
14-
- [Integrate with the opportunity adapter](./integrate-as-searcher/opportunity-adapter)
11+
Searchers can integrate with the Express Relay server in two steps:
12+
- Integrate with the auction server
13+
- Integrate with the opportunity adapter _(OPTIONAL)_
1514

1615

1716

@@ -107,6 +106,19 @@ Searchers can submit bids through an HTTP POST call to the `/v1/bids` endpoint.
107106
Searchers can submit bids via Websocket to avoid additional network round-trips and get notified about changes to the bid status.
108107

109108
```bash copy
109+
{
110+
"id": "1",
111+
"method": "post_bid",
112+
"params": {
113+
"bid": {
114+
"amount": "10",
115+
"calldata": "0xdeadbeef",
116+
"chain_id": "sepolia",
117+
"contract": "0xcA11bde05977b3631167028862bE2a173976CA11",
118+
"permission_key": "0xdeadbeefcafe"
119+
}
120+
}
121+
}
110122
```
111123

112124
A successful response to a bid submission has the following schema:

pages/express-relay/integrate-as-searcher/auction-server.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ In order to unsubscribe from a list of chains, you can send the following messag
139139

140140
For most searchers, it is recommended to source opportunities via the opportunity endpoints and construct transactions intended for the [`OpportunityAdapter`](./integrate-as-searcher/opportunity-adapter). The SDKs expose methods to craft the calldata for the `OpportunityAdapter` contract and construct and submit the `Bid`.
141141

142-
If you prefer to use your own custom contracts rather than the `OpportunityAdpater` contract for executing opportunities, you can still use the server's opportunity endpoints to learn about opportunities on specific protocols and then craft a `Bid` based on an `Opportunity`. Here is a simplified example of a custom contract method that uses the `Opportunity` information to call a liquidation.
142+
If you prefer to use your own custom contracts rather than the `OpportunityAdpater` contract for executing opportunities, you can still use the server's opportunity endpoints to learn about opportunities on specific protocols and then craft a `Bid` based on an `Opportunity`.
143+
Here is a simplified example of a custom contract method that uses the `Opportunity` information to call a liquidation.
143144

144145
```solidity
145146
...

0 commit comments

Comments
 (0)