burn-stream-writer
v0.2.1
Published
Write to a burn-stream
Downloads
1
Maintainers
Readme
Burn-stream-writer lets you write to a burn-stream.
Burn-stream-writer writes to a burn-stream by connecting to a Bitcoin client over RPC.
Usage
- Set up a Bitcoin client with RPC enabled.
- Get a burn-stream JSON app config file (see burn-stream for more info).
- Make a JSON file that matches the configuration of your Bitcoin client. Take care not to accidentally share the password for your Bitcoin client! An example:
{
"host": "localhost",
"port": "18332",
"user": "user",
"pass": "real secure"
}
To write from the command line, run bin/write.js
. It will ask for confirmation before writing. An example command:
node bin/write.js \
--clientConfig client-config.json \
--appConfig example-config.json \
--amount 100000 \
--message sup
To write from Javascript code, you can require burn-stream-writer (see bin/write.js
for an example).