implement /api/mempool

This commit is contained in:
Antoni Spaanderman
2022-02-13 13:52:04 +01:00
parent c900fdbf4f
commit 8902107663
3 changed files with 8 additions and 2 deletions

View File

@@ -699,7 +699,12 @@ class Routes {
}
public async getMempool(req: Request, res: Response) {
res.status(501).send('Not implemented');
const info = mempool.getMempoolInfo();
res.json({
count: info.size,
vsize: info.bytes,
total_fee: info.total_fee * 1e8
});
}
public async getMempoolTxIds(req: Request, res: Response) {