Stellar PHP SDK API Documentation

ExtendFootprintTTLOperationBuilder
in package

Builder for creating ExtendFootprintTTL operations.

This builder implements the builder pattern to construct ExtendFootprintTTLOperation instances with a fluent interface. This operation extends the time-to-live (TTL) of Soroban contract storage entries, preventing them from being archived.

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

Stellar developer docs

since
1.0.0
example

$operation = (new ExtendFootprintTTLOperationBuilder(100000)) ->setSourceAccount($sourceId) ->build();

Table of Contents

Methods

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

public __construct(int $extendTo) : mixed
Parameters
$extendTo : int

The number of ledgers to extend the TTL

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