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.