Providers
Consuming Bids from mev-commit
Providers that have registered in the mev-commit registry will automatically start receiving bids on the mev-commit p2p network from bidders. In order to see incoming bids, providers need to communicate with their mev-commit node:
-
Use the official go RPC client to communicate with your mev-commit node. Go get the mev-commit package and then import the generated client as below:
- Install the mev-commit package:
❯_ terminal- Incorporate the generated client into your Go application as follows:
There is an example implementation of a dummy provider client which blindly accepts all the bids it sees from its mev-commit node. This could be a good starting point for providers implementing their commitment decision logic in golang.
Alternative Methods
- Use https://github.com/fullstorydev/grpcurl or https://github.com/bloomrpc/bloomrpc or other GUI clients like Postman. Relevant protobuf files are available in the mev-commit repository.
- Check the API docs to use the REST APIs. The RPC APIs are also available on the HTTP server.
- Users can use the protobuf files to generate a client in language of their choice.