Javascript code to use OP_PUSHDATA to upload files or write plain text to Bitcoin mainchain, test network, and regtest network.
Install Node.js
-
Clone the repository from GitHub:
git clone https://github.com/bigg-S/Bitcoin-Javascript-Gist---OP_DATA.git
-
Change directory into the project directory and install the necessary dependencies:
npm install
-
Build the project:
npm run build
The project is ready now
-
Start the cors-anywhere server:
npm run cors
-
Serve the projet:
npm start
1. Upload file or enter plain text in the provided fields
2. Click on "Process Inputs" button to upload the data to bitcoin networks
Special thanks to the following libraries and frameworks used in this project:
- Node.js
- Axios
- Webpack