Skip to content

DaWe35/Onchain-Video-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Video Uploader

A tool for uploading videos to the Blast blockchain.

Important Disclaimer

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

Prerequisites

  • Node.js (v16 or later)
  • FFmpeg installed and available in PATH
  • A Blast wallet with sufficient funds
  • Your private key (stored in .env file)

Installation

  1. Clone this repository

  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory with your Ethereum private key:

    ETHEREUM_PRIVATE_KEY=your_private_key_here
    NETWORK=mainnet or testnet
    
  4. Ensure you have ffmpeg installed on your system for video conversion.

  5. Place the contract ABI in a file named abi.json in the root directory.

Usage

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

About

Command line utility to upload videos to Blast

Resources

Stars

Watchers

Forks

Contributors