- 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.