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
Modifier and TypeClassDescriptionstatic final class
Links connected to ledger. -
Constructor Summary
ConstructorDescriptionLedgerResponse
(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 theheaderXdr
field from a string to anLedgerHeader
object.- Returns:
- the parsed
LedgerHeader
object
-
getId
-
getPagingToken
- Specified by:
getPagingToken
in interfacePageable
-
getHash
-
getPrevHash
-
getSequence
-
getSuccessfulTransactionCount
-
getFailedTransactionCount
-
getOperationCount
-
getTxSetOperationCount
-
getClosedAt
-
getTotalCoins
-
getFeePool
-
getBaseFeeInStroops
-
getBaseReserveInStroops
-
getMaxTxSetSize
-
getProtocolVersion
-
getHeaderXdr
-
getLinks
-
toString
-
equals
-
hashCode
public int hashCode()
-