Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PaymentOperation

Structure representing a Stellar Payment Operation.

Hierarchy

  • Operation<Horizon.OperationResponseType.payment, Horizon.OperationResponseTypeI.payment>
    • PaymentOperation

Index

Constructors

constructor

Properties

amount

amount: number

The amount sent.

Optional assetCode

assetCode: string

The code for the asset being sent. Appears if assetType is not native.

Optional assetIssuerId

assetIssuerId: string

The Stellar address of the issuer of the asset being sent. Appears if assetType is not native.

assetType

assetType: AssetType

The type of asset being sent. Either native, credit_alphanum4, or credit_alphanum12.

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.

recipientId

recipientId: string

The payment recipient’s public key.

senderId

senderId: string

The payment sender’s public key.

sourceAccountId

sourceAccountId: string

The account that originates the operation.

transactionHash

transactionHash: string

A unique id for the transaction the operation belongs to.

type

type: payment

The numeric type of the operation.

typeName

typeName: payment

The name of the operation type.

Methods

$patch

  • $patch(data: PaymentOperationRecord): void

getEffects

getRecipientAccount

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

getSenderAccount

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

getSentAsset

  • getSentAsset(forceUpdate?: boolean): Promise<undefined | Asset>

getSourceAccount

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

getTransaction

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

Generated using TypeDoc