Package com.casper.sdk.model.balance
Class QueryBalanceDetailsResult
- java.lang.Object
-
- com.casper.sdk.model.common.RpcResult
-
- com.casper.sdk.model.balance.QueryBalanceDetailsResult
-
public class QueryBalanceDetailsResult extends RpcResult
Result for "query_balance_details" RPC response.
-
-
Constructor Summary
Constructors Constructor Description QueryBalanceDetailsResult()QueryBalanceDetailsResult(java.math.BigInteger totalBalance, java.math.BigInteger availableBalance, java.lang.String totalBalanceProof, java.util.List<BalanceHoldWithProof> holds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegergetAvailableBalance()The available balance in motes (total balance - sum of all active holds).java.util.List<BalanceHoldWithProof>getHolds()Holds active at the requested point in time.java.math.BigIntegergetTotalBalance()The purses total balance, not considering holds.java.lang.StringgetTotalBalanceProof()A proof that the given value is present in the Merkle trie.-
Methods inherited from class com.casper.sdk.model.common.RpcResult
getApiVersion, getProtocolVersion
-
-
-
-
Constructor Detail
-
QueryBalanceDetailsResult
public QueryBalanceDetailsResult()
-
QueryBalanceDetailsResult
public QueryBalanceDetailsResult(java.math.BigInteger totalBalance, java.math.BigInteger availableBalance, java.lang.String totalBalanceProof, java.util.List<BalanceHoldWithProof> holds)
-
-
Method Detail
-
getTotalBalance
public java.math.BigInteger getTotalBalance()
The purses total balance, not considering holds.
-
getAvailableBalance
public java.math.BigInteger getAvailableBalance()
The available balance in motes (total balance - sum of all active holds).
-
getTotalBalanceProof
public java.lang.String getTotalBalanceProof()
A proof that the given value is present in the Merkle trie.
-
getHolds
public java.util.List<BalanceHoldWithProof> getHolds()
Holds active at the requested point in time.
-
-