Skip to content

RPC API: not dump the full blob content for 2 blob related RPC API #2454

@zzzckck

Description

@zzzckck

Rationale

According to https://forum.bnbchain.org/t/design-eip-4844-on-bsc/2621, we have 2 RPC APIs to get blobs:

eth_getBlobSidecars(blockNrOrHash BlockNumberOrHash)
eth_getBlobSidecarByTxHash(hash common.Hash)

But they will dump the full blob content, which is too large and could flood the screen, pls add a parameter to provide simplified mode, which only print a subset of blob content:

eth_getBlobSidecars(blockNrOrHash BlockNumberOrHash, short bool)
eth_getBlobSidecarByTxHash(hash common.Hash, short bool)

Expect:
short is false by default, and the output will be exactly same as current behavior.
but if it is set to true, then only the first 32Bytes will be printed, as BlobTxBytesPerFieldElement = 32Bytes.

Implementation

NA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions