2

When i verify the balance of an account after deploing an ERC20 token, i receive this returns:

  BN { negative: 0, words: [ 50, <1 empty item> ], length: 1, red: null }

I know that "50" is the number of token. May someone explain me what do the other things mean please?

2

BN stands for Big number.

you can have the meaning of all these fields in the the BN.js library documentation as this later is used by web3js (1.0.) to deal with big numbers.

EXP :

  1. negative for bit sign
  2. red for reduction
  • Thanks so much. – Mongetro Goint Aug 14 at 13:18
  • 1
    @MongetroGoint don't forget to mark the answer as accepted ;) – Badr Bellaj Aug 14 at 16:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.