CreateClaimableBalanceOperationBuilder
in package
Builder for creating CreateClaimableBalance operations.
This builder implements the builder pattern to construct CreateClaimableBalanceOperation instances with a fluent interface. This operation creates a claimable balance entry that can be claimed by authorized claimants according to defined predicates.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new CreateClaimableBalance operation builder.
- build() : CreateClaimableBalanceOperation
- Builds the CreateClaimableBalance 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 CreateClaimableBalance operation builder.
public
__construct(array<string|int, Claimant> $claimants, Asset $asset, string $amount) : mixed
Parameters
build()
Builds the CreateClaimableBalance operation.
public
build() : CreateClaimableBalanceOperation
Return values
CreateClaimableBalanceOperation —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