Hi. I am making a request to get the wallet balance. I get an answer in the form of a long number. Two questions: does this number contain the total balance? How do I get the balance of a specific coin on my wallet?

const TonWeb = require('tonweb');
const tonweb = new TonWeb();

const getData = async () => {
const balance = await tonweb.getBalance('UQAwglRK8d31o2cREAU-g6bh4aUT1HGHTr64m7yYp2ESW8ta')
console.log(balance)
}
getData()

Jan 9, 2024, 12:14 PM

© 2024 Draquery.com All rights reserved.