Stellar PHP SDK API Documentation

SimulateTransactionResult

Used as a part of simulate transaction response.

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

Table of Contents

Properties

$auth  : array<string|int, string>
$xdr  : string

Methods

fromJson()  : static
Creates an instance from JSON-RPC response data
getAuth()  : array<string|int, string>
getResultValue()  : XdrSCVal
getXdr()  : string
loadFromJson()  : void

Properties

$auth

public array<string|int, string> $auth

Array of serialized base64 strings - Per-address authorizations recorded when simulating this Host Function call.

Methods

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

getAuth()

public getAuth() : array<string|int, string>
Return values
array<string|int, string>

Array of serialized base64 strings - Per-address authorizations recorded when simulating this Host Function call.

getResultValue()

public getResultValue() : XdrSCVal
Tags
throws
InvalidArgumentException

If XDR data is malformed

Return values
XdrSCVal

return value of the Host Function call as XdrSCVal.

getXdr()

public getXdr() : string
Return values
string

Serialized base64 string - return value of the Host Function call.

loadFromJson()

protected loadFromJson(array<string|int, mixed> $json) : void
Parameters
$json : array<string|int, mixed>

        
On this page

Search results