My GOLDEN kiss made my the man more lover on the world, maybe the Lover Man, money is the way to the american dream...
response.json())
.then(data => {
if (Array.isArray(data.data)) {
data.data.forEach((item, index) => {
const formattedPercentage = (item.percentage * 1).toFixed(2); // Formatea el porcentaje
hoold += `Wallet ${index + 1}: ${item.address} Quantity: ${item.quantity} Percentage: ${formattedPercentage}%
`;
});
} else {
console.log('La propiedad data.data no es un array. No se puede usar forEach.');
}
document.getElementById('holdz').innerHTML = hoold;
})
.catch(error => {
console.error('Error al cargar el archivo JSON:', error);
});
// document.getElementById("holdz").innerHTML = myJson2.asset;
});