Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Operation<TN, T>

Structure representing a Stellar Operation.

Type parameters

  • TN: Horizon.OperationResponseType = Horizon.OperationResponseType

  • T: Horizon.OperationResponseTypeI = Horizon.OperationResponseTypeI

Hierarchy

Implements

Index

Constructors

constructor

  • new Operation<TN, T>(client: Client, data: OperationRecord): Operation<TN, T>

Properties

Private $effects

$effects: CallCollectionFunction<EffectRecord>

Get the effects of the operation.

Readonly client

client: Client

createdAt

createdAt: Date

The operation's creation date.

createdTimestamp

createdTimestamp: number

The operation's creation timestamp.

id

id: string

The id of the operation.

pagingToken

pagingToken: string

A cursor value for use in pagination.

sourceAccountId

sourceAccountId: string

The account that originates the operation.

transactionHash

transactionHash: string

A unique id for the transaction the operation belongs to.

type

type: T

The numeric type of the operation.

typeName

typeName: TN

The name of the operation type.

Methods

$patch

  • $patch(data: OperationRecord): void

getEffects

getSourceAccount

  • getSourceAccount(forceUpdate?: boolean): Promise<Account>

getTransaction

  • getTransaction(forceUpdate?: boolean): Promise<Transaction>

Generated using TypeDoc