ntById('betResult').innerHTML = `
                    <h2>Error</h2>
                    <div class="stat-label">Failed to place bets: <span class="stat-value">${error.message}</span></div>
                `;
            }
        }

        async function getMarketBySlug(slug) {
            const response = await fetch(`${API_URL}/slug/${slug}`);
            return await response.json();
        }

        async function placeBet({ contractId, outcome, amount, apiKey }) {
            const response = await