Skip to content

[Feature] TransactionRequest::with_blob_sidecar for eip-7594 sidecar #3065

@alessandromazza98

Description

@alessandromazza98

Component

rpc

Describe the feature you would like

For legacy eip-4844 sidecar I usually build the transaction request like this:

let tx = TransactionRequest::default()
    .to(to_address)
    .from(from_address)
    .input(calldata.into())
    .with_blob_sidecar(sidecar);

And then I send it to the network like this:

let send_result = l1_provider.send_transaction(transaction_request).await;

I'd like to have an analogous way to create a tx request with a eip-7594 sidecar. Something like:

let tx = TransactionRequest::default()
    .to(to_address)
    .from(from_address)
    .input(calldata.into())
    .with_blob_eip_7594_sidecar(eip_7594_sidecar);

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions