LedgerBounds
final public class LedgerBounds : Sendable
LedgerBounds are Preconditions of a transaction per CAP-21
-
The minimum ledger number (inclusive) for transaction validity.
Declaration
Swift
final public let minLedger: UInt32 -
The maximum ledger number (inclusive) for transaction validity.
Declaration
Swift
final public let maxLedger: UInt32 -
Creates ledger bounds specifying the ledger number range for transaction validity.
Declaration
Swift
public init(minLedger: UInt32, maxLedger: UInt32) -
Creates ledger bounds from XDR representation.
Declaration
Swift
public init(lederbounds: LedgerBoundsXDR) -
Converts this LedgerBounds to its XDR representation.
Declaration
Swift
public func toXdr() -> LedgerBoundsXDR
View on GitHub
Install in Dash