LedgerResponse
public struct LedgerResponse : Decodable, Sendable
Represents a ledger response. See Stellar developer docs
-
Hypermedia links to related Horizon resources.
Declaration
Swift
public var links: LedgerLinksResponse -
Unique identifier for this ledger.
Declaration
Swift
public var id: String -
Paging token suitable for use as a cursor parameter.
Declaration
Swift
public var pagingToken: String -
Hex-encoded SHA-256 hash of the ledger’s XDR-encoded form.
Declaration
Swift
public var hashXdr: String -
The hash of the ledger that chronologically came before this one.
Declaration
Swift
public var previousHashXdr: String -
Sequence number of this ledger, suitable for use as the as the :id parameter for url templates that require a ledger number.
Declaration
Swift
public var sequenceNumber: Int64 -
The number of successful transactions in this ledger.
Declaration
Swift
public var successfulTransactionCount: Int -
The number of failed transactions in this ledger.
Declaration
Swift
public var failedTransactionCount: Int -
The number of operations in this ledger.
Declaration
Swift
public var operationCount: Int -
The total number of operations in the transactions set.
Declaration
Swift
public var txSetOperationCount: Int -
An ISO 8601 formatted string of when this ledger was closed.
Declaration
Swift
public var closedAt: Date -
The total number of lumens in circulation.
Declaration
Swift
public var totalCoins: String -
The sum of all transaction fees (in lumens) since the last inflation operation. They are redistributed during inflation.
Declaration
Swift
public var feePool: String -
The fee the network charges per operation in a transaction.
Declaration
Swift
public var baseFeeInStroops: Int -
The reserve the network uses when calculating an account’s minimum balance.
Declaration
Swift
public var baseReserveInStroops: Int -
The maximum number of transactions validators have agreed to process in a given ledger.
Declaration
Swift
public var maxTxSetSize: Int -
The protocol version that the stellar network was running when this ledger was committed.
Declaration
Swift
public var protocolVersion: Decimal -
Base64-encoded XDR of the ledger header structure.
Declaration
Swift
public var headerXdr: String -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash