MicroTrxChannels is a bitcoin micro-payment channel example.
Do not use this code for anything production related, since there is almost no error condition checking.
https://www.youtube.com/watch?v=HmYP-7pcdhM&spfreload=10
- Clone repository and change to
microtrxchannels
directory - Run
npm install
- Create config by copying
*_template
files to their respective*.js
files and adjust config - Please note TIMELOCK_PREFER in config.js - the default TTL for a channel, set at 10mins(600secs).
- Run
bin/www
to start application (useDEBUG=microtrxchannels bin/www
orDEBUG=* bin/www
for different levels of debug output) - Point browser to http://localhost:3000/client
-
Bitcoin Core running on testnet, example
bitcoin.conf
:testnet=1 daemon=1 server=1 rpcuser=your_user rpcpassword=your_pass