Stellar PHP SDK API Documentation

LedgerEntryChange

Part of the simulate transaction response

Tags
see
https://developers.stellar.org/network/soroban-rpc/api-reference/methods/simulateTransaction

Table of Contents

Properties

$after  : string|null
$before  : string|null
$key  : string
$type  : string

Methods

__construct()  : mixed
fromJson()  : static
Creates an instance from JSON-RPC response data
getAfter()  : string|null
getAfterXdr()  : XdrLedgerEntry|null
getBefore()  : string|null
getBeforeXdr()  : XdrLedgerEntry|null
getKey()  : string
getKeyXdr()  : XdrLedgerKey
getType()  : string
setAfter()  : void
setBefore()  : void
setKey()  : void
setType()  : void

Properties

Methods

__construct()

public __construct(string $type, string $key[, string|null $before = null ][, string|null $after = null ]) : mixed
Parameters
$type : string

Indicates if the entry was 'created', 'updated', or 'deleted'

$key : string

XdrLedgerKey in base64 for this delta

$before : string|null = null

XdrLedgerEntry in base64 (state prior to simulation)

$after : string|null = null

XdrLedgerEntry in base64 (state after simulation)

fromJson()

Creates an instance from JSON-RPC response data

public static fromJson(array<string, mixed> $json) : static
Parameters
$json : array<string, mixed>

The JSON response data

Return values
static

The created instance

getAfter()

public getAfter() : string|null
Return values
string|null

XdrLedgerEntry in base64 (state after simulation)

getBefore()

public getBefore() : string|null
Return values
string|null

XdrLedgerEntry in base64 (state prior to simulation)

getKey()

public getKey() : string
Return values
string

the XdrLedgerKey in base64 for this delta.

getType()

public getType() : string
Return values
string

Indicates if the entry was 'created', 'updated', or 'deleted'

setAfter()

public setAfter(string|null $after) : void
Parameters
$after : string|null

XdrLedgerEntry in base64 (state after simulation)

setBefore()

public setBefore(string|null $before) : void
Parameters
$before : string|null

XdrLedgerEntry in base64 (state prior to simulation)

setKey()

public setKey(string $key) : void
Parameters
$key : string

the XdrLedgerKey in base64 for this delta

setType()

public setType(string $type) : void
Parameters
$type : string

Indicates if the entry was 'created', 'updated', or 'deleted'


        
On this page

Search results