                amount: cost1,
                    apiKey: apiKey
                });

                const bet2 = await placeBet({
                    contractId: market2.id,
                    outcome: outcome2,
                    amount: cost2,
                    apiKey: apiKey
                });

                document.getElementById('betResult').innerHTML = `
                    <h2>Bets Placed Successfully</h2>
                    <div class="market-info">
                        <div class="st