Package org.stellar.sdk.responses
Class LedgerResponse
java.lang.Object
org.stellar.sdk.responses.Response
org.stellar.sdk.responses.LedgerResponse
- All Implemented Interfaces:
Pageable
Represents ledger response.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classLinks connected to ledger. -
Constructor Summary
ConstructorsConstructorDescriptionLedgerResponse(String id, String pagingToken, String hash, String prevHash, Long sequence, Integer successfulTransactionCount, Integer failedTransactionCount, Integer operationCount, Integer txSetOperationCount, String closedAt, String totalCoins, String feePool, BigInteger baseFeeInStroops, BigInteger baseReserveInStroops, Integer maxTxSetSize, Integer protocolVersion, String headerXdr, LedgerResponse.Links links) -
Method Summary
-
Constructor Details
-
LedgerResponse
public LedgerResponse(String id, String pagingToken, String hash, String prevHash, Long sequence, Integer successfulTransactionCount, Integer failedTransactionCount, Integer operationCount, Integer txSetOperationCount, String closedAt, String totalCoins, String feePool, BigInteger baseFeeInStroops, BigInteger baseReserveInStroops, Integer maxTxSetSize, Integer protocolVersion, String headerXdr, LedgerResponse.Links links)
-
-
Method Details
-
parseHeaderXdr
Parses theheaderXdrfield from a string to anLedgerHeaderobject.- Returns:
- the parsed
LedgerHeaderobject
-
getId
-
getPagingToken
- Specified by:
getPagingTokenin interfacePageable
-
getHash
-
getPrevHash
-
getSequence
-
getSuccessfulTransactionCount
-
getFailedTransactionCount
-
getOperationCount
-
getTxSetOperationCount
-
getClosedAt
-
getTotalCoins
-
getFeePool
-
getBaseFeeInStroops
-
getBaseReserveInStroops
-
getMaxTxSetSize
-
getProtocolVersion
-
getHeaderXdr
-
getLinks
-
toString
-
equals
-
hashCode
public int hashCode()
-