A tool for uploading videos to the Blast blockchain.
This is a beta software and it can make you spend a lot of money on gas fees. Use it at your own risk.
Please generate a separate wallet for this, it's very dangerous to store your private key on your local machine without encryption. If you just want a demo, try the web version: https://onchainvideo.win
- Node.js (v16 or later)
- FFmpeg installed and available in PATH
- A Blast wallet with sufficient funds
- Your private key (stored in
.envfile)
-
Clone this repository
-
Install dependencies:
npm install -
Create a
.envfile in the root directory with your Ethereum private key:ETHEREUM_PRIVATE_KEY=your_private_key_here NETWORK=mainnet or testnet -
Ensure you have
ffmpeginstalled on your system for video conversion. -
Place the contract ABI in a file named
abi.jsonin the root directory.
Run the script using:
npm install
npm start
Btw FFmpeg wasm is awesome, I promise I'll use it in a real project. I missed you guys so much