サラ:
私は、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...");