Represents a collection of Solana blockchain transactions and signers to execute together as an operation.

Hierarchy

  • Operation

Constructors

Accessors

  • get accounts(): PublicKey[]
  • Gets the array of public keys of accounts involved in the operation.

    Returns PublicKey[]

  • get context(): OperationContext
  • Gets the context of the operation, containing transaction, signers, accounts, and fee payer.

    Returns OperationContext

  • get feePayer(): Signer
  • Gets the fee payer of the operation.

    Returns Signer

  • set feePayer(feePayer): void
  • Sets the fee payer for the operation.

    Parameters

    • feePayer: Signer

      The signer to set as the fee payer.

    Returns void

  • get instructions(): TransactionInstruction[]
  • Gets an array of TransactionInstruction extracted from the OperationItem objects.

    Returns TransactionInstruction[]

  • get items(): OperationItem[]
  • Gets the array of OperationItem that represent the transactions and instructions of the operation.

    Returns OperationItem[]

  • get signers(): KeypairLike[]
  • Gets the array of KeypairLike that represent the signers involved in the operation.

    Returns KeypairLike[]

  • get transaction(): Transaction
  • Gets the constructed Transaction object for the operation.

    Returns Transaction

Methods

  • Adds new OperationItem objects to the operation.

    Parameters

    • Rest ...items: OperationItem[]

      The items to add, which are OperationItem objects.

    Returns void

  • Adds new KeypairLike objects to the operation.

    Parameters

    • Rest ...signers: KeypairLike[]

      The items to add, which are KeypairLike objects.

    Returns void

  • Sends and confirms the transaction associated with the operation.

    Parameters

    • Optional confirmOptions: ConfirmOptions

      The confirmation options to use for the transaction.

    Returns Promise<ConfirmedContext>

    A promise that resolves when the transaction is confirmed.

  • Concatenates multiple operations into a single Operation object.

    Parameters

    • operations: Operation[]

      The array of operations to concatenate.

    Returns Operation

    An Operation object that combines the input operations.

  • Creates an Operation object from the given OperationContext.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • context: OperationContext

      The OperationContext containing transaction, signers, accounts, and fee payer.

    Returns Operation

    An Operation object representing the operation context.

  • Checks if the input object is of type OperationContext.

    Parameters

    • input: any

      The object to check.

    Returns input is OperationContext

    True if the object is of type OperationContext, false otherwise.

Generated using TypeDoc