Skip to content

Add 'get merkle branch' for Electrumx in bch-api #9

@christroutner

Description

@christroutner

The scope of this task is to add GET and POST endpoints to bch-api as well as unit and integration tests for a 'get raw transaction data' endpoint for Electrumx.

This is one of series of tasks to port Insomnia REST API to bch-api and bch-js. I've already completed the 'address balance', 'UTXOs', and 'Transaction history' endpoints for you to follow as an example.

For this task, you should submit a PR to the bch-api repository to edit the bch-api/electrumx.js file, in order to add GET and POST endpoints to duplicate the Insomnia /tx/merkle/{txid}/{height} endpoint in bch-api. You can see how I've implemented the GET and POST endpoints for the first three endpoints. Follow that pattern.

Acceptance Criteria

  • Add GET and POST endpoints to electrumx.js in bch-api.
  • Add api-doc documentation to electrumx.js.
  • Add unit and integration tests for these new endpoints in bch-api.

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