mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
Implement engine_getBlobsV1 (#9723)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -14,8 +14,8 @@ use reth_rpc_types::{
|
||||
ForkchoiceState, ForkchoiceUpdated, PayloadId, PayloadStatus, TransitionConfiguration,
|
||||
},
|
||||
state::StateOverride,
|
||||
BlockOverrides, EIP1186AccountProofResponse, Filter, JsonStorageKey, Log, SyncStatus,
|
||||
TransactionRequest,
|
||||
BlobAndProofV1, BlockOverrides, EIP1186AccountProofResponse, Filter, JsonStorageKey, Log,
|
||||
SyncStatus, TransactionRequest,
|
||||
};
|
||||
// NOTE: We can't use associated types in the `EngineApi` trait because of jsonrpsee, so we use a
|
||||
// generic here. It would be nice if the rpc macro would understand which types need to have serde.
|
||||
@ -213,6 +213,13 @@ pub trait EngineApi<Engine: EngineTypes> {
|
||||
/// See also <https://github.com/ethereum/execution-apis/blob/6452a6b194d7db269bf1dbd087a267251d3cc7f8/src/engine/common.md#capabilities>
|
||||
#[method(name = "exchangeCapabilities")]
|
||||
async fn exchange_capabilities(&self, capabilities: Vec<String>) -> RpcResult<Vec<String>>;
|
||||
|
||||
/// Fetch blobs for the consensus layer from the in-memory blob cache.
|
||||
#[method(name = "getBlobsV1")]
|
||||
async fn get_blobs_v1(
|
||||
&self,
|
||||
transaction_ids: Vec<B256>,
|
||||
) -> RpcResult<Vec<Option<BlobAndProofV1>>>;
|
||||
}
|
||||
|
||||
/// A subset of the ETH rpc interface: <https://ethereum.github.io/execution-apis/api-documentation/>
|
||||
|
||||
Reference in New Issue
Block a user