[BREAKGLASS] A simple mock server that emulated electrs responses for the mempool project
Go to file
2021-11-15 21:51:29 +04:00
src New block fix. 2021-11-15 21:51:29 +04:00
.gitignore Delete random feature. 2021-05-27 20:35:18 +04:00
package.json Init 2020-07-22 11:25:15 +07:00
README.md Fixes 2020-07-22 14:00:39 +07:00
tsconfig.json Init 2020-07-22 11:25:15 +07:00
tslint.json Init 2020-07-22 11:25:15 +07:00
yarn.lock Init 2020-07-22 11:25:15 +07:00

electrs-mockserver

A simple mock server that emulated electrs responses for the mempool project backend

Install

yarn install

Place a mempool.space mempool dump into /db named mempool.json

Run

ts-node src/index.ts

Commands

http://localhost:50001/start-auto (starts automatic random transaction and block creation)

http://localhost:50001/stop-auto

http://localhost:50001/create-block

http://localhost:50001/create-transactions?amount={amount}