RestorePreamble

public struct RestorePreamble : Decodable, Sendable

It can only present on successful simulation (i.e. no error) of InvokeHostFunction operations. If present, it indicates the simulation detected expired ledger entries which requires restoring with the submission of a RestoreFootprint operation before submitting the InvokeHostFunction operation. The restorePreamble.minResourceFee and restorePreamble.transactionData fields should be used to construct the transaction containing the RestoreFootprint

  • The recommended Soroban Transaction Data to use when submitting the RestoreFootprint operation.

    Declaration

    Swift

    public let transactionData: SorobanTransactionDataXDR
  • Recommended minimum resource fee to add when submitting the RestoreFootprint operation. This fee is to be added on top of the Stellar network fee.

    Declaration

    Swift

    public let minResourceFee: UInt32
  • Declaration

    Swift

    public init(from decoder: Decoder) throws