Skip to content

Feature Request: RPC getBlocks include tx acceptance #685

@ZenVoich

Description

@ZenVoich

Is your feature request related to a problem? Please describe.
Kaspa RPC are not so welcoming when trying to index transactions(historical data is a special nightmare).

I wonder if it is possible to include tx acceptance in getBlocks response, so it will simplify indexing transactions and will not require to handle acceptance using getVirtualChainFromBlock which brings extra complexity.

Describe the solution you'd like
tx.verboseData.accepted boolean field. I think I can rely on this field if I stay behind for example for 2 minutes when indexing transactions, so possibility of reogs is nearly 0.

Describe alternatives you've considered

Image

from https://kaspa.org/wp-content/uploads/2023/03/Integration_Guide_for_Kaspa_BlockDAG.pdf

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    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