javascript-sdk icon indicating copy to clipboard operation
javascript-sdk copied to clipboard

Invalid output of getBalance for undefined

Open Totenfluch opened this issue 4 years ago • 0 comments

Hey,

calling

client.getBalance(undefined)

returns a non zero value:

{"free":"0.55587500","frozen":"0.00000000","locked":"0.00000000","symbol":"BNB"}

However this changes daily to other random non zero numbers

Calling the API directly using http://dex.binance.org/api/v1/account/undefined

return the expected output

{"code":400,"message":"decoding bech32 failed: invalid index of 1"}

Totenfluch avatar Nov 08 '20 16:11 Totenfluch