Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any help on balance check #10

Open
wasimjee opened this issue Jan 14, 2020 · 2 comments
Open

any help on balance check #10

wasimjee opened this issue Jan 14, 2020 · 2 comments

Comments

@wasimjee
Copy link

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
Copy link
Author

anyone help please

@nonamedo
Copy link

nonamedo commented Apr 5, 2022

Hi,
Try this:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants