Type Alias hotshot_task_impls::builder::v0_99::BuilderClient
source · pub type BuilderClient<TYPES> = BuilderClient<TYPES, StaticVersion<0, 99>>;
Expand description
Client for builder API
Aliased Type§
struct BuilderClient<TYPES> {
client: Client<Error, StaticVersion<0, 99>>,
_marker: PhantomData<TYPES>,
}
Fields§
§client: Client<Error, StaticVersion<0, 99>>
Underlying surf_disco::Client for the legacy builder api
_marker: PhantomData<TYPES>
Marker for [NodeType
] used here
Implementations§
source§impl<TYPES: NodeType> BuilderClient<TYPES>
impl<TYPES: NodeType> BuilderClient<TYPES>
sourcepub async fn bundle(
&self,
parent_view: u64,
parent_hash: VidCommitment,
view_number: u64,
) -> Result<Bundle<TYPES>, BuilderClientError>
pub async fn bundle( &self, parent_view: u64, parent_hash: VidCommitment, view_number: u64, ) -> Result<Bundle<TYPES>, BuilderClientError>
Claim block
§Errors
BuilderClientError::BlockNotFound
if block isn’t availableBuilderClientError::Api
if API isn’t responding or responds incorrectly