Method
get_header_url
(
&self,
slot: u64,
parent_hash: &B256,
validator_pubkey: &BlsPublicKey,
)
Source from the content-addressed store, hash-verified
| 109 | } |
| 110 | |
| 111 | pub fn get_header_url( |
| 112 | &self, |
| 113 | slot: u64, |
| 114 | parent_hash: &B256, |
| 115 | validator_pubkey: &BlsPublicKey, |
| 116 | ) -> Result<Url, PbsError> { |
| 117 | self.builder_api_url( |
| 118 | &format!("/header/{slot}/{parent_hash}/{validator_pubkey}"), |
| 119 | BuilderApiVersion::V1, |
| 120 | ) |
| 121 | } |
| 122 | |
| 123 | pub fn get_status_url(&self) -> Result<Url, PbsError> { |
| 124 | self.builder_api_url(GET_STATUS_PATH, BuilderApiVersion::V1) |