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

查询余额时为0 #23

Open
wxiaofan opened this issue Oct 27, 2021 · 5 comments
Open

查询余额时为0 #23

wxiaofan opened this issue Oct 27, 2021 · 5 comments

Comments

@wxiaofan
Copy link

在查询出块地址的时候余额为0

@godeamon
Copy link
Collaborator

@wxiaofan 可以详细描述一下吗?自己搭建的节点吗?创世文件中的出块地址可以截图看看吗?java sdk 查询余额的相关代码可以贴出来吗?

@wxiaofan
Copy link
Author

    XuperClient client = new XuperClient("ip:37101");
    client.setChainName("xuper");
    BigInteger balance = client.getBalance("aUP9UALUDE9pAkGjBkYy7pGbgVzPFb6km");
    System.out.println(balance.toString());

@godeamon
Copy link
Collaborator

aUP9UALUDE9pAkGjBkYy7pGbgVzPFb6km

这个是你自己生成的地址吗?xchain 的创世文件 xuper.json 可以发下吗?

@grandedevil
Copy link

我查看源码,在代码是根据区块链的名称来匹配的,没有匹配到所以一致为0
微信图片_20211111185335

@godeamon
Copy link
Collaborator

@grandedevil 你好,这个是 xuperchain 的问题,你可以更新下 xupechain 的版本。

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

3 participants