This Python script facilitates the automated inscription process for a collection of digital images using Node.js commands. It interacts with a blockchain-based system, performing minting and wallet synchronization for each image within a specified range.
Node.js installed.
Proper configuration of the Node.js environment.
Access to the collection directory containing images for inscription.
JSON file to store transaction IDs and corresponding image details.
Replace with the actual receiving address in the mint_command.
Set the correct directory, file_prefix, and file_extension values for your image collection.
Specify the range of files to be inscribed by setting start and end.
Run the script to automate the inscription process.
Constructs file names based on the specified range.
Executes the minting command using Node.js, capturing the output.
Handles errors and specific messages, proceeding to wallet sync if needed.
Executes the wallet sync command to confirm inscription.
Retries in case of specific errors, with a maximum retry count.
Updates a JSON file with transaction IDs for successful inscriptions.
Ensure Node.js is correctly configured and accessible in the system.
Backup important files before running the script.
Monitor the script execution for any errors or warnings.
directory = 'C:\Doginals-main\'
file_prefix = 'Ape' <File name without the 5 zeros>
file_extension = 'jpg' < image extension without the period>
start = 1 end = 22 run_node_commands(start, end, directory, file_prefix, file_extension)