Stellar PHP SDK API Documentation

ExtendFootprintTTLOperation extends AbstractOperation
in package

Represents an extend footprint TTL operation.

Extends the time-to-live (TTL) of contract-related ledger entries in the transaction's footprint.

Tags
see

Stellar developer docs

since
1.0.0

Table of Contents

Methods

__construct()  : mixed
Creates a new ExtendFootprintTTLOperation.
fromXdr()  : AbstractOperation
Creates an operation from its XDR representation.
fromXdrAmount()  : string
Converts an XDR amount (stroops) to a decimal string.
fromXdrOperation()  : ExtendFootprintTTLOperation
Creates an ExtendFootprintTTLOperation from its XDR representation.
getExtendTo()  : int
Gets the number of ledgers to extend by.
getSourceAccount()  : MuxedAccount|null
Gets the source account for this operation.
setExtendTo()  : void
Sets the number of ledgers to extend by.
setSourceAccount()  : void
Sets the source account for this operation.
toOperationBody()  : XdrOperationBody
Converts this operation to its XDR operation body representation.
toXdr()  : XdrOperation
Converts this operation to its XDR representation.
toXdrAmount()  : BigInteger
Converts a decimal amount string to XDR amount format (stroops).

Methods

__construct()

Creates a new ExtendFootprintTTLOperation.

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

The number of ledgers to extend the entry lifetimes by.

fromXdrAmount()

Converts an XDR amount (stroops) to a decimal string.

public static fromXdrAmount(BigInteger $stroops) : string
Parameters
$stroops : BigInteger

The amount in stroops (1 stroop = 0.0000001)

Return values
string

The amount as a decimal string

getExtendTo()

Gets the number of ledgers to extend by.

public getExtendTo() : int
Return values
int

The number of ledgers

getSourceAccount()

Gets the source account for this operation.

public getSourceAccount() : MuxedAccount|null
Return values
MuxedAccount|null

The source account, or null if using the transaction's source account

setExtendTo()

Sets the number of ledgers to extend by.

public setExtendTo(int $extendTo) : void
Parameters
$extendTo : int

The number of ledgers

setSourceAccount()

Sets the source account for this operation.

public setSourceAccount(MuxedAccount|null $sourceAccount) : void
Parameters
$sourceAccount : MuxedAccount|null

The source account, or null to use the transaction's source account

toXdrAmount()

Converts a decimal amount string to XDR amount format (stroops).

public static toXdrAmount(string $strAmount) : BigInteger
Parameters
$strAmount : string

The amount as a decimal string

Return values
BigInteger

The amount in stroops (1 stroop = 0.0000001)


        
On this page

Search results