Skip to content

[electrs] Feature Request: Add endpoint for querying txs by op_return #267

@daniel-savu

Description

@daniel-savu

It would be great to be able to have an endpoint such as GET /opreturn/:hash256 that returns all transactions whose op_return output matches the :hash256 parameter. Adding this feature would probably require either:

  1. iterating through all transactions, or
  2. storing an additional RocksDB object for transactions, indexed by the op_return

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