                
                    }))
                    // wait for confirmation from the blockchain
                    .then((tx) => waitForAlgosignerConfirmation(tx)) // see algosignerutils.js
                    .then((tx) => {
                        // our transaction was successful, we can now view it on the blockchain 
                        console.log('connection successful');
                    })
                    .catch((e) => { 
                        // handle errors and pe