Stellar PHP SDK API Documentation

ChangeTrustOperationBuilder
in package

Builder for creating ChangeTrust operations.

This builder implements the builder pattern to construct ChangeTrustOperation instances with a fluent interface. ChangeTrust operations create, update, or delete a trustline between the source account and an asset issuer.

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

Stellar developer docs

since
1.0.0
example

$operation = (new ChangeTrustOperationBuilder($asset, '1000.00')) ->setSourceAccount($sourceId) ->build();

Table of Contents

Methods

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

public __construct(Asset $asset[, string|null $limit = null ]) : mixed
Parameters
$asset : Asset

The asset of the trustline

$limit : string|null = null

The limit of the trustline (null for default maximum)

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