[BREAKGLASS] A simple mock server that emulated electrs responses for the mempool project
Go to file
2020-08-06 15:28:36 +07:00
src Address mock api 2020-08-06 15:28:36 +07:00
.gitignore Init 2020-07-22 11:25:15 +07: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}