ContractCreditedEffectResponse

public class ContractCreditedEffectResponse : EffectResponse, @unchecked Sendable

Represents a contract credit effect. This effect occurs when a Soroban smart contract receives an asset transfer. Contracts can hold and manage Stellar assets as part of their execution. Triggered by Invoke Host Function operations that transfer assets to contracts. See Stellar developer docs

  • The contract ID receiving the credit.

    Declaration

    Swift

    public let contract: String
  • The amount credited to the contract.

    Declaration

    Swift

    public let amount: String
  • The asset type credited to the contract (e.g., native, credit_alphanum4, credit_alphanum12).

    Declaration

    Swift

    public let assetType: String
  • The asset code credited to the contract. Nil for native assets.

    Declaration

    Swift

    public let assetCode: String?
  • The issuer account ID of the asset. Nil for native assets.

    Declaration

    Swift

    public let assetIssuer: String?
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data