Stellar PHP SDK API Documentation

ClaimClaimableBalanceOperationBuilder
in package

Builder for creating ClaimClaimableBalance operations.

This builder implements the builder pattern to construct ClaimClaimableBalanceOperation instances with a fluent interface. This operation claims a claimable balance entry, transferring its contents to the claiming account.

Tags
see
ClaimClaimableBalanceOperation
see
https://developers.stellar.org

Stellar developer docs

since
1.0.0
example

$operation = (new ClaimClaimableBalanceOperationBuilder($balanceId)) ->setSourceAccount($claimantId) ->build();

Table of Contents

Methods

__construct()  : mixed
Creates a new ClaimClaimableBalance operation builder.
build()  : ClaimClaimableBalanceOperation
Builds the ClaimClaimableBalance 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 ClaimClaimableBalance operation builder.

public __construct(string $balanceId) : mixed
Parameters
$balanceId : string

The claimable balance ID

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


        
On this page

Search results