OperationType
public enum OperationType : Int32, Sendable
Enumeration of all Stellar operation types. Each operation type corresponds to a specific action that can be performed on the Stellar network.
-
Creates and funds a new account with a starting balance.
Declaration
Swift
case accountCreated = 0 -
Sends native or non-native assets from source account to destination account.
Declaration
Swift
case payment = 1 -
Sends assets along a path while receiving a specific destination amount (deprecated, use pathPaymentStrictReceive).
Declaration
Swift
case pathPayment = 2 -
Creates or updates an offer to sell an asset at a specific price.
Declaration
Swift
case manageSellOffer = 3 -
Creates a passive sell offer that does not take existing offers at the same price.
Declaration
Swift
case createPassiveSellOffer = 4 -
Sets various account options including signers, thresholds, and flags.
Declaration
Swift
case setOptions = 5 -
Creates, updates, or deletes a trustline for an asset.
Declaration
Swift
case changeTrust = 6 -
Authorizes or deauthorizes another account to hold an asset (deprecated, use setTrustLineFlags).
Declaration
Swift
case allowTrust = 7 -
Merges source account into destination account, transferring all funds.
Declaration
Swift
case accountMerge = 8 -
Runs the weekly inflation process (deprecated and removed from protocol).
Declaration
Swift
case inflation = 9 -
Sets, modifies, or deletes a key-value data entry on an account.
Declaration
Swift
case manageData = 10 -
Bumps forward the sequence number of the source account.
Declaration
Swift
case bumpSequence = 11 -
Creates or updates an offer to buy an asset with a specific buying amount.
Declaration
Swift
case manageBuyOffer = 12 -
Sends a specific amount of an asset along a path, allowing destination amount to vary.
Declaration
Swift
case pathPaymentStrictSend = 13 -
Creates a claimable balance entry that can be claimed by specified claimants.
Declaration
Swift
case createClaimableBalance = 14 -
Claims a claimable balance, transferring funds to the claiming account.
Declaration
Swift
case claimClaimableBalance = 15 -
Begins sponsoring the reserves of operations in a transaction.
Declaration
Swift
case beginSponsoringFutureReserves = 16 -
Ends the sponsorship context started by beginSponsoringFutureReserves.
Declaration
Swift
case endSponsoringFutureReserves = 17 -
Revokes sponsorship of a ledger entry or signer, transferring reserve responsibility.
Declaration
Swift
case revokeSponsorship = 18 -
Claws back a specified amount of an asset from a holding account.
Declaration
Swift
case clawback = 19 -
Claws back a claimable balance, returning funds to the asset issuer.
Declaration
Swift
case clawbackClaimableBalance = 20 -
Sets flags on a trustline including authorized, authorized to maintain liabilities, and clawback enabled.
Declaration
Swift
case setTrustLineFlags = 21 -
Deposits assets into a liquidity pool in exchange for pool shares.
Declaration
Swift
case liquidityPoolDeposit = 22 -
Withdraws assets from a liquidity pool by redeeming pool shares.
Declaration
Swift
case liquidityPoolWithdraw = 23 -
Invokes a smart contract function on the Soroban runtime.
Declaration
Swift
case invokeHostFunction = 24 -
Extends the time-to-live of Soroban contract data or code entries.
Declaration
Swift
case extendFootprintTTL = 25 -
Restores archived Soroban contract data or code entries.
Declaration
Swift
case restoreFootprint = 26
View on GitHub
Install in Dash