javascript-sdk
javascript-sdk copied to clipboard
Invalid output of getBalance for undefined
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"}