CreatePassiveSellOfferOperationBuilder
in package
Builder for creating CreatePassiveSellOffer operations.
This builder implements the builder pattern to construct CreatePassiveSellOfferOperation instances with a fluent interface. Passive sell offers allow an account to place an offer on the order book that will not be immediately matched with crossing offers.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new CreatePassiveSellOffer operation builder.
- build() : CreatePassiveSellOfferOperation
- Builds the CreatePassiveSellOffer operation.
- setMuxedSourceAccount() : $this
- Sets the muxed source account for this operation.
- setSourceAccount() : $this
- Sets the source account for this operation.
Methods
__construct()
Creates a new CreatePassiveSellOffer operation builder.
public
__construct(Asset $selling, Asset $buying, string $amount, Price $price) : mixed
Parameters
build()
Builds the CreatePassiveSellOffer operation.
public
build() : CreatePassiveSellOfferOperation
Return values
CreatePassiveSellOfferOperation —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
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