Skip to content

btccom/wallet-recovery-data-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d722164 · May 7, 2021

History

29 Commits
Nov 27, 2018
Nov 12, 2020
Dec 21, 2018
Nov 27, 2018
Mar 5, 2021
Dec 19, 2018
Mar 5, 2021
May 7, 2021
Nov 12, 2020

Repository files navigation

Wallet Recovery Data Bridge

"TLS socket to HTTP" bridge for certain endpoints of ElectrumX servers

Installation

  • git clone this repo
  • npm install
  • node app.js

Environment variables

ENV variable Meaning
ELECTRUM_SERVER Electrum server address to connect to
ELECTRUM_SERVER_PORT Electrum server port to connect to
NODE_ENV Log level 'production' / 'debug'
SERVER_PORT HTTP server port, default is 8080

Existing Endpoints on the bridge

GET

Endpoint Request parameters
/estimateFeeRate optional: confirmations to set priority in amount of blocks

POST

Endpoint Request parameters
/addressHasTransactions {"address": arrayOfAddresses/address }
/addressListUnspent {"address": address }
/publishTx {"tx": txAsHexString }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published