MemPush is a lightweight Flask web application for managing and pushing Bitcoin transactions to the mempool. This tool provides a simple interface to submit raw transactions, track their status, and manually push them to the Bitcoin network.
<network> with one of: mainchain, testnetv3, testnetv4, or signet.
GET /<network>/api/transactionsReturns a JSON array of all transactions for the specified network, ordered by creation date (newest first).
curl -X GET http://localhost:5000/mainchain/api/transactions
GET /<network>/api/transaction/<txid>Returns complete transaction information for a specific transaction ID on the specified network.
curl -X GET http://localhost:5000/mainchain/api/transaction/abc123...
POST /<network>/api/transactionSubmit a transaction ID to fetch and store the transaction from the mempool for the specified network.
{"txid": "your_txid_here"}curl -X POST http://localhost:5000/mainchain/api/transaction -H "Content-Type: application/json" -d '{"txid": "abc123..."}'
POST /<network>/api/transaction/pushSubmit a raw transaction in hex format and push it to the mempool for the specified network.
{"raw_tx": "your_hex_transaction_here"}curl -X POST http://localhost:5000/testnetv3/api/transaction/push -H "Content-Type: application/json" -d '{"raw_tx": "0100000001..."}'
POST /<network>/transaction/<txid>/pushPush an existing transaction to the mempool for the specified network.
curl -X POST http://localhost:5000/mainchain/transaction/abc123.../push
POST /<network>/transaction/<txid>/deleteDelete a confirmed or failed transaction from the specified network.
curl -X POST http://localhost:5000/mainchain/transaction/abc123.../delete
mempool.space: Primary mempool service for transaction pushing and status checking
https://mempool.space/https://mempool.space/testnet/https://mempool.space/testnet4/https://mempool.space/signet/mempool.space: Explorer service
https://mempool.space/https://mempool.space/testnet/https://mempool.space/testnet4/https://mempool.space/signet/This project is open source and available on GitHub!
View on GitHubThis project is available under the MIT License.
git clone https://github.com/valerio-vaccaro/mempush.gitpython -m venv venv && source venv/bin/activatepip install -r requirements.txtflask db upgradeflask runhttp://localhost:5000 (redirects to /mainchain/)http://localhost:5000/mainchain/http://localhost:5000/testnetv3/http://localhost:5000/testnetv4/http://localhost:5000/signet/