Stellar PHP SDK API Documentation

SetTrustLineFlagsOperationBuilder
in package

Builder for creating SetTrustLineFlags operations.

This builder implements the builder pattern to construct SetTrustLineFlagsOperation instances with a fluent interface. SetTrustLineFlags operations allow an asset issuer to set or clear flags on a trustline to control authorization and clawback capabilities.

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

Stellar developer docs

since
1.0.0
example

$operation = (new SetTrustLineFlagsOperationBuilder($trustorId, $asset, $clearFlags, $setFlags)) ->setSourceAccount($issuerId) ->build();

Table of Contents

Methods

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

public __construct(string $trustorId, Asset $asset, int $clearFlags, int $setFlags) : mixed
Parameters
$trustorId : string

The account ID of the trustline holder (trustor)

$asset : Asset

The asset of the trustline

$clearFlags : int

The flags to clear on the trustline

$setFlags : int

The flags to set on the trustline

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