Simple microservice to generate Electrum scripthashes from addresses.
Based on coinslib.
Also available as cli-tool.
- docker-compose
Simply provide the desired network and address as follows:
curl localhost:8080/scripthash/peercoin/p92W3t7YkKfQEPDb7cG9jQ6iMh7cpKLvwK
returns
f83cf3b3ccddc19323fccef53417926f3303070abf4c6492164d2b0f513ad4e6
- Bitcoin (bitcoin, bitcoin_testnet)
- Peercoin (peercoin, peercoin_testnet)
PRs for other networks are welcome. Just add your network to lib/networks.dart
.
- Clone this repo.
- run ./deploy.sh
- (optional) Create a docker-compose.override.yml file and modify the ports to your liking.
- You now have a microservice that will serve scripthashes.