I have the result of a promise that if I execute this, it takes me as a console to the result I want:
web3.eth.getBalance(localStorage.getItem('address')).then(
console.log
);
But when I try to put the value in a P-label, nothing appears. How should I mount this sentence right?
web3.eth.getBalance(localStorage.getItem('address')).then(
$('#balance').text()
);