I got following result from getBalance check: truffle(default)> web3.eth.getBalance('xxxxxxxxxxxxxxx')
Can anyone explain what does it means and where the value of ether: BigNumber { s: 1, e: 0, c: [ 0 ] }?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityI got following result from getBalance check: truffle(default)> web3.eth.getBalance('xxxxxxxxxxxxxxx')
Can anyone explain what does it means and where the value of ether: BigNumber { s: 1, e: 0, c: [ 0 ] }?
You need to convert the BigNumber into a string to have a readable value
web3.eth.getBalance('xxxxxxxxxxxxxxx').toString()
the output value would be in wei.
You can use web3.fromWei(number, unit)
to convert it in another unit (eg. ether). ref