ManageSellOfferOperationBuilder
in package
Builder for creating ManageSellOffer operations.
This builder implements the builder pattern to construct ManageSellOfferOperation instances with a fluent interface. ManageSellOffer operations create, update, or delete offers to sell an asset on the Stellar decentralized exchange.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new ManageSellOffer operation builder.
- build() : ManageSellOfferOperation
- Builds the ManageSellOffer operation.
- setMuxedSourceAccount() : $this
- Sets the muxed source account for this operation.
- setOfferId() : ManageSellOfferOperationBuilder
- Sets offer ID. <code>0</code> creates a new offer. Set to existing offer ID to change it.
- setSourceAccount() : $this
- Sets the source account for this operation.
Methods
__construct()
Creates a new ManageSellOffer operation builder.
public
__construct(Asset $selling, Asset $buying, string $amount, string $price) : mixed
Parameters
build()
Builds the ManageSellOffer operation.
public
build() : ManageSellOfferOperation
Return values
ManageSellOfferOperation —The constructed operation
setMuxedSourceAccount()
Sets the muxed source account for this operation.
public
setMuxedSourceAccount(MuxedAccount $sourceAccount) : $this
Parameters
- $sourceAccount : MuxedAccount
-
The muxed account to use as source
Return values
$this —Returns the builder instance for method chaining
setOfferId()
Sets offer ID. <code>0</code> creates a new offer. Set to existing offer ID to change it.
public
setOfferId(int $offerId) : ManageSellOfferOperationBuilder
Parameters
- $offerId : int
Return values
ManageSellOfferOperationBuilder —Builder object so you can chain methods.
setSourceAccount()
Sets the source account for this operation.
public
setSourceAccount(string $accountId) : $this
Parameters
- $accountId : string
-
The Stellar account ID (G...)
Return values
$this —Returns the builder instance for method chaining