Expand description
Bid on blockspace via the mekatek block auctions.
This crate provides a simple wrapper around the Zenith block Builder API. It allows anyone to bid on block space auctions and poll for available auctions coming up.
§Usage
Add zenith-rs
to the dependencies section of your Cargo.toml
file.
[dependencies]
zenith-rs = "1"
Structs§
- Auction
Error - AuctionError is the wrapper for all errors returned by the mekatek API.
- Auction
Request - AuctionRequst is used to query the mekatek API if an auction is available for
the supplied
chain_id
height
pair. - Auction
Response - AuctionResponse contains the payment details of an auction for the supplied
chain_id
,height
pair. This response will only be returned if an auction was found, otherwise an error will be returned. - BidRequest
- The BidRequest signals intent to bid on the
kind
atheight
for the givenchain_id
. The bid is implicit in the payment transactions/messages included in thetxs
list. - BidResponse
- A BidResponse is the indication that the request well formed and considered
for the given
chain_id
andheight
, but it does not imply guaranteed inclusion. - Http
- The builder API exposed via HTTP.
Enums§
- BidKind
- Bidding is allowed to target either the top of the block or any position in the block.
Traits§
- Builder
- The Builder trait encapsulates the capabilities of the Zenith builder API.