- simple.js: use datapay to upload an image. Just put an image file in the same folder and change the code to the filename.
- build.js: Same as simple.js but instead of sending, you can build the transaction and export. Then you can submit it manually to public insight endpoints that accept raw tx broadcast
- pipe.js: Using a Bitpipe approach. Set up a microservice that accepts Datapay JSON payload and broadcast. This can be powerful if you want to open up the image uploader to other people for free.
- index.js: Express HTTP server, ready to be dockerised, listens on PORT and expects POST data64 to be Base64 encoded image to store on blockchain, or GET ?url=address.com/some-image-on-net.png of the image, that will be downloaded, and stored on blockchain.
forked from unwriter/BitcoinMediaUpload
-
Notifications
You must be signed in to change notification settings - Fork 0
breign/BitcoinMediaUpload
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A set of demos to demonstrate how to upload media to Bitcoin using Datapay or Bitpipe
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 97.7%
- Dockerfile 2.3%