Hello, I am working with web3 and binance. Once I get the balance of the account, I get it back in a string with this example format: 100000000.....
Question, I need to pass the value to BNB.
Does anyone know how to do it?

thanks

Jul 27, 2021, 7:34 PM
balance = web3.fromWei(raw_balance, 'ether')
Jul 27, 2021, 7:35 PM
perfect! thanks!
Jul 27, 2021, 7:38 PM

© 2024 Draquery.com All rights reserved.