MV Help me fix this custom plugin I am trying to work on !

Help me fix my code please
the goal
event command is triggered input dialogue box opens for user to enter wallet info .. nft is then minted to wallet using api key .. success or failure message is displayed after event finish.

Changes whatever needs changing to help me make this work please and thank you.

JavaScript:
/*:
 * @plugindesc RPG Maker MV plugin for minting NFTs using Web3.js and Infura API.
 * @author Your Name
 *
 * @param name
 * @text NFT Name
 * @desc The name of the NFT.
 * @type text
 *
 * @param description
 * @text NFT Description
 * @desc The description of the NFT.
 * @type text
 *
 * @param tokenURI
 * @text Token URI
 * @desc The URI of the token metadata. Provide a URL or leave blank to use a default URI.
 * @type text
 *
 * @help
 * This plugin allows you to mint NFTs using Web3.js and Infura API.
 *
 * Plugin Commands:
 *   NFTMint mint - Mint an NFT using the saved wallet information.
 *
 * Required Parameters for Plugin Command:
 *   - name: The name of the NFT.
 *   - description: The description of the NFT.
 *
 * Optional parameters for Plugin Command:
 *   - tokenURI: The URI of the token metadata. Provide a URL or leave blank to use a default URI.
 */

(function() {
    'use strict';

    const web3 = new Web3('https://sepolia.infura.io/v3/Your_API_KEY_Here');

    const pluginName = 'NFTMint';
    const commandName = 'mint';
    const parameters = PluginManager.parameters(pluginName);
    const name = String(parameters['name']);
    const description = String(parameters['description']);
    const tokenURI = String(parameters['tokenURI']);

    const _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.apply(this, arguments);
        if (command === 'NFTMint' && args[0] === 'mint') {
            const walletInfo = $gameVariables.value(2); // Access wallet info saved at control variable 0002

            if (walletInfo) {
                const walletAddress = walletInfo["address"]; // Get the wallet address from the wallet info
                const privateKey = walletInfo["privateKey"]; // Get the private key from the wallet info

                const mintParams = { name, description, to: walletAddress, url: tokenURI };
                const mintMethod = web3.eth.accounts.signTransaction(mintParams, privateKey);

                web3.eth.sendSignedTransaction(mintMethod.rawTransaction)
                    .on('transactionHash', function(hash) {
                        console.log(`Transaction hash: ${hash}`);
                    })
                    .on('receipt', function(receipt) {
                        console.log(`NFT successfully minted to wallet address: ${walletAddress}`);
                        console.log('Receipt:', receipt);
                        SceneManager._scene.startTextBox({
                            scene: SceneManager._scene,
                            message: 'NFT successfully minted to wallet address: ' + walletAddress,
                            defaultValue: ''
                        });
                    })
                    .on('error', function(error) {
                        console.error('An error occurred while minting NFT:', error);
                    });
            } else {
                console.error('Wallet information not found. Please make sure to save the wallet information to control variable 0002 "myprivate".');
            }
        }
    };
})();

Original thread: https://forums.rpgmakerweb.com/threads/help-me-fix-this-custom-plugin-i-am-trying-to-work-on.159543/