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?
  • The muxed contract address (W... strkey) that received the credit, built from contract and contractMuxedId. Horizon sets it for a transfer or mint to a muxed contract address, otherwise it is nil.

    Declaration

    Swift

    public let contractMuxed: String?
  • The multiplexing id of the muxed contract address, as the decimal string Horizon sends. Horizon sets it for a transfer or mint to a muxed contract address, otherwise it is nil.

    Declaration

    Swift

    public let contractMuxedId: 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