Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Adds sendBid details.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Oct 12, 2023
1 parent acfc7fa commit cb10a4e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,32 @@ OPTIONS:
}
```

## Sending bids as a Searcher
To send bids, you can use an gRPC api that is availible to searcher nodes.
Upon running this service, searcher nodes will have access to the following:
```protobuf
service Searcher {
rpc SendBid(Bid) returns (stream Commitment) {}
}
message Bid {
string txn_hash = 1;
int64 bid_amt = 2;
int64 block_number = 3;
};
```

By default, the docker setup exposes port `13524`, which is the standard port on which the searcher api is running. By hitting SendBid with the bid structure in the following format:
```json
{
"txn_hash": "<txn-hash>",
"bid_amt": <number>,
"block_number": <block-number>
}
```


## Commitments from Builders
To recieve commitments from builders, the builder-mev-node needs to have a running service that connects to the RPC endpoints and connects to the following functions:
```protobuf
Expand Down
Binary file removed examples/builderemulator/builderemulator
Binary file not shown.

0 comments on commit cb10a4e

Please sign in to comment.