-This Python script automates the process of inscribing and airdroppng images.
-It extracts Dogecoin addresses from a specified JSON file, mints inscriptions from specified filepath, airdrops the minted inscription, and updates a JSON file with transaction details.
-The script handles specific error messages and ensures successful inscription.
Interacts with the Dogecoin blockchain for minting inscriptions.
Error Handling: Detects and addresses specific error messages during the minting process.
JSON File Update: Updates a JSON file with transaction details for each successfully minted image.
##Install Dependencies:
Ensure you have Node.js installed, as the script utilizes Node.js commands.
Additionally, install Python dependencies:
pip install -r requirements.txt
Edit the airDropList.json file to include Dogecoin addresses in the format:
{ "airDropList": [ {"dogecoin_address": "ADDRESS1"}, {"dogecoin_address": "ADDRESS2"}, ... ] }
Replace the placeholder details in the script with your specific information:
directory = 'C:\doginals-main\RiceCerts' file_prefix = 'animated' file_extension = 'webp' start = 337 end = 351
python auto_inscription_script.py
file_name:
JSON file containing Dogecoin addresses (airDropList.json by default).
directory:
Directory containing images to be inscribed.
file_prefix:
Prefix for image filenames.
file_extension:
Extension of the image files.
start:
Starting index for image filenames.
end:
Ending index for image filenames.
-The script is implemented in Python and utilizes Node.js for interacting with the Dogecoin blockchain. It extracts addresses from the JSON file, mints and sends inscriptions, handles errors, and updates a JSON file with transaction details.
Feel free to reach out if you encounter any issues or have questions!