tron.net icon indicating copy to clipboard operation
tron.net copied to clipboard

any help on balance check

Open wasimjee opened this issue 5 years ago • 2 comments

I am using

account.Address = ByteString.CopyFrom("TKGDdxJKjHgc3Xk8uzuJdgYo3faVPkA9XM", Encoding.Unicode);
account.AccountName = ByteString.CopyFrom("Test", Encoding.Unicode);
account.Type = Tron.Net.Protocol.AccountType.Normal;
var acco = await wallet.GetAccountAsync(account); 

unable to get the balance

wasimjee avatar Jan 14 '20 09:01 wasimjee

anyone help please

wasimjee avatar Jan 16 '20 17:01 wasimjee

Hi, Try this:

var bytes = Base58CheckEncoding.Decode("TKGDdxJKjHgc3Xk8uzuJdgYo3faVPkA9XM"); var account = await wallet.GetAccountAsync(new Account{ Address = ByteString.CopyFrom(bytes) });

nonamedo avatar Apr 05 '22 09:04 nonamedo