Java Code Examples for net.bither.bitherj.core.Address#getBalance()
The following examples show how to use
net.bither.bitherj.core.Address#getBalance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainFrameUI.java From bither-desktop-java with Apache License 2.0 | 6 votes |
public void updateHeader() { if (UserPreference.getInstance().getAppMode() == BitherjSettings.AppMode.COLD) { return; } long finalEstimatedBalance = 0; for (Address address : AddressManager.getInstance().getAllAddresses()) { finalEstimatedBalance = finalEstimatedBalance + address.getBalance(); } if (AddressManager.getInstance().getHdAccount() != null) { finalEstimatedBalance = finalEstimatedBalance + AddressManager.getInstance().getHdAccount().getBalance(); } final long total = finalEstimatedBalance; if (EventQueue.isDispatchThread()) { updateHeaderOnSwingThread(total); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { updateHeaderOnSwingThread(total); } }); } }
Example 2
Source File: MainFrameUI.java From bither-desktop-java with Apache License 2.0 | 6 votes |
public void updateHeader() { if (UserPreference.getInstance().getAppMode() == BitherjSettings.AppMode.COLD) { return; } long finalEstimatedBalance = 0; for (Address address : AddressManager.getInstance().getAllAddresses()) { finalEstimatedBalance = finalEstimatedBalance + address.getBalance(); } if (AddressManager.getInstance().getHdAccount() != null) { finalEstimatedBalance = finalEstimatedBalance + AddressManager.getInstance().getHdAccount().getBalance(); } final long total = finalEstimatedBalance; if (EventQueue.isDispatchThread()) { updateHeaderOnSwingThread(total); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { updateHeaderOnSwingThread(total); } }); } }
Example 3
Source File: DialogBalanceDetail.java From bither-android with Apache License 2.0 | 4 votes |
public Info(Address address) { txCount = address.txCount(); totalReceived = address.totalReceive(); totalSent = totalReceived - address.getBalance(); }