Publish payload

This commit is contained in:
Eitan Seri- Levi
2026-02-03 20:28:28 -08:00
parent 1ed80fa35d
commit 25853847ef
9 changed files with 232 additions and 218 deletions

View File

@@ -2623,6 +2623,29 @@ impl BeaconNodeHttpClient {
ExecutionPayloadEnvelope::from_ssz_bytes(&response_bytes).map_err(Error::InvalidSsz)
}
/// `POST v1/beacon/execution_payload_envelope`
pub async fn post_beacon_execution_payload_envelope<E: EthSpec>(
&self,
envelope: &SignedExecutionPayloadEnvelope<E>,
) -> Result<(), Error> {
let mut path = self.eth_path(V1)?;
path.path_segments_mut()
.map_err(|()| Error::InvalidUrl(self.server.clone()))?
.push("beacon")
.push("execution_payload_envelope");
self.post_generic_with_consensus_version(
path,
envelope,
Some(self.timeouts.proposal),
ForkName::Gloas,
)
.await?;
Ok(())
}
/// `GET v2/validator/blocks/{slot}` in ssz format
pub async fn get_validator_blocks_ssz<E: EthSpec>(
&self,