Skip to content

Add ElectrumX transaction merkle endpoints#236

Open
JeremyZeng77 wants to merge 1 commit into
Permissionless-Software-Foundation:masterfrom
JeremyZeng77:codex/bch-api-merkle-branch
Open

Add ElectrumX transaction merkle endpoints#236
JeremyZeng77 wants to merge 1 commit into
Permissionless-Software-Foundation:masterfrom
JeremyZeng77:codex/bch-api-merkle-branch

Conversation

@JeremyZeng77

Copy link
Copy Markdown

Issue

Fixes #9.

Summary

  • adds GET /electrumx/tx/merkle/:txid/:height
  • adds POST /electrumx/tx/merkle for bulk txid/height requests
  • documents both endpoints with apidoc comments
  • adds unit mocks, unit tests, and integration coverage for the new handlers

Verification

  • git diff --check
  • node --check src/routes/v5/electrumx.js
  • node --check test/v5/a01-electrumx.js
  • node --check test/v5/integration/electrumx.js
  • node .\node_modules\standard\bin\cmd.js --env mocha src\routes\v5\electrumx.js test\v5\a01-electrumx.js test\v5\integration\electrumx.js test\v5\mocks\electrumx-mock.js
  • NETWORK=mainnet TEST=unit node .\node_modules\mocha\bin\mocha --exit --timeout 60000 --grep "(#getTransactionMerkle|#transactionMerkleBulk)" test\v5\a01-electrumx.js: 11 passing
  • NETWORK=mainnet TEST=unit node .\node_modules\mocha\bin\mocha --exit --timeout 60000 test\v5\a01-electrumx.js: 98 passing

Payout

PayPal: https://paypal.me/Jeremytsangchina
Backup USDT TRC20: TWupTAoFjxR2VmqUUvzhfmUwXVZR6Kvz1Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant