Bidder API
Bidders
Bidders will use the bidder
role to run their nodes. The node provides the Bidder API to submit bids to the network and will sign the bid before sending it out. In response, bidders will receive commitments from providers if their bid is accepted. This is a streaming response, and bidders are expected to keep their connection alive until their node receives all relevant commitments.
The Bidder API is also implemented using the gRPC framework, supporting two primary operations:
- Send Bid: The user submit their bid.
- Receive Preconfirmation: The user receives streaming preconfirmations if accepted.
RPC API for Bidders
Users can find the protobuf file in the repository. This can be used to generate the client for the RPC in the language of your choice. The Go client has already been generated in the repository. For other languages, please follow the instructions in the gRPC documentation to generate them separately.
API Operation:
Message Definitions
HTTP API
The same API is also available on the HTTP port configured on the node. Please review the API docs to understand the usage.
An example CLI application is implemented in the repository. The primary purpose of this example is to demonstrate the process of integrating with the RPC API.