ContractDebitedEffectResponse
public class ContractDebitedEffectResponse : EffectResponse, @unchecked Sendable
Represents a contract debit effect. This effect occurs when a Soroban smart contract sends an asset transfer. Contracts can hold and manage Stellar assets as part of their execution. Triggered by Invoke Host Function operations that transfer assets from contracts. See Stellar developer docs
-
The contract ID sending the debit.
Declaration
Swift
public let contract: String -
The amount debited from the contract.
Declaration
Swift
public let amount: String -
The asset type debited from the contract (e.g., native, credit_alphanum4, credit_alphanum12).
Declaration
Swift
public let assetType: String -
The asset code debited from 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) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash