Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ManageBuyOfferOperation

Structure representing a Stellar Manage Buy Offer Operation.

Hierarchy

  • Operation<Horizon.OperationResponseType.manageBuyOffer, Horizon.OperationResponseTypeI.manageBuyOffer>
    • ManageBuyOfferOperation

Index

Constructors

constructor

Properties

amount

amount: number

The amount of sellingAsset that the account making the offer is willing to buy.

Optional buyingAssetCode

buyingAssetCode: string

The code for the buying asset. Appears if buyingAssetType is not native.

Optional buyingAssetIssuerId

buyingAssetIssuerId: string

The Stellar address of the buying asset’s issuer. Appears if buyingAssetType is not native.

buyingAssetType

buyingAssetType: AssetType

The type for the buying asset. 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.

offerId

offerId: string

The id of the offer.

pagingToken

pagingToken: string

A cursor value for use in pagination.

price

price: number

How many units of buyingAsset it takes to get 1 unit of sellingAsset. A number representing the decimal form of priceRational.

priceRational

priceRational: PriceRational

A precise representation of the buy and sell price of the assets on offer.

Optional sellingAssetCode

sellingAssetCode: string

The code for the selling asset. Appears if sellingAssetType is not native.

Optional sellingAssetIssuerId

sellingAssetIssuerId: string

The Stellar address of the selling asset’s issuer. Appears if sellingAssetType is not native.

sellingAssetType

sellingAssetType: AssetType

The type for the selling asset. Either native, credit_alphanum4, or credit_alphanum12.

sourceAccountId

sourceAccountId: string

The account that originates the operation.

transactionHash

transactionHash: string

A unique id for the transaction the operation belongs to.

type

type: manageBuyOffer

The numeric type of the operation.

typeName

typeName: manageBuyOffer

The name of the operation type.

Methods

$patch

  • $patch(data: ManageOfferOperationRecord): void

getBuyingAsset

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

getEffects

getOffer

  • getOffer(forceUpdate?: boolean): Promise<Offer>

getSellingAsset

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

getSourceAccount

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

getTransaction

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

Generated using TypeDoc