Class Operation

java.lang.Object
org.stellar.sdk.operations.Operation
Direct Known Subclasses:
AccountMergeOperation, AllowTrustOperation, BeginSponsoringFutureReservesOperation, BumpSequenceOperation, ChangeTrustOperation, ClaimClaimableBalanceOperation, ClawbackClaimableBalanceOperation, ClawbackOperation, CreateAccountOperation, CreateClaimableBalanceOperation, CreatePassiveSellOfferOperation, EndSponsoringFutureReservesOperation, ExtendFootprintTTLOperation, InflationOperation, InvokeHostFunctionOperation, LiquidityPoolDepositOperation, LiquidityPoolWithdrawOperation, ManageBuyOfferOperation, ManageDataOperation, ManageSellOfferOperation, PathPaymentStrictReceiveOperation, PathPaymentStrictSendOperation, PaymentOperation, RestoreFootprintOperation, RevokeAccountSponsorshipOperation, RevokeClaimableBalanceSponsorshipOperation, RevokeDataSponsorshipOperation, RevokeOfferSponsorshipOperation, RevokeSignerSponsorshipOperation, RevokeTrustlineSponsorshipOperation, SetOptionsOperation, SetTrustlineFlagsOperation

public abstract class Operation extends Object
Abstract class for operations.
  • Method Details

    • toXdr

      public Operation toXdr()
      Generates Operation XDR object.
    • toXdrBase64

      public String toXdrBase64()
      Returns base64-encoded Operation XDR object.
    • fromXdr

      public static Operation fromXdr(Operation xdr)
      Returns new Operation object from Operation XDR object.
      Parameters:
      xdr - XDR object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getSourceAccount

      public String getSourceAccount()
      The source account for the operation.
    • setSourceAccount

      public void setSourceAccount(String sourceAccount)
      The source account for the operation.