アイオンアカウントから表示バランス

サラ:

私は、Java APIを使用してアイオンで口座の残高を取得しようとしています。私は何をすべきかは関係ありませんが、私はから値を取得することはできませんaccount変数。

account = "a06f02e986965ddd3398c4de87e3708072ad58d96e9c53e87c31c8c970b211e5";
BigInteger account_balance = api.getChain().getBalance(account).getObject();

System.out.format("%n%s balance is = %d nAmp (over %d AION)%n", 
    account, 
    account_balance, 
    account_balance.divide(BigInteger.TEN.pow(18)));

誰任意のアイデアを持っていますか?

reelyard:

あなたには、あなたのアカウントのアドレスをラップする必要がありますAddress.wrap

account = Address.wrap("a06f02e9...");

おすすめ

転載: http://43.154.161.224:23101/article/api/json?id=204612&siteId=1