Skip to content

A set of demos to demonstrate how to upload media to Bitcoin using Datapay or Bitpipe

Notifications You must be signed in to change notification settings

breign/BitcoinMediaUpload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Image to Bitcoin

  1. simple.js: use datapay to upload an image. Just put an image file in the same folder and change the code to the filename.
  2. 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
  3. 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.
  4. 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.

https://github.com/unwriter/BitcoinMediaUpload

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

 
 
 

Languages

  • JavaScript 97.7%
  • Dockerfile 2.3%