Stellar PHP SDK API Documentation

ParameterResponse

Represents a Soroban contract function parameter

Encapsulates a single parameter passed to a smart contract function during invocation. Contains the parameter type and its encoded value. Used in InvokeHostFunctionOperationResponse to represent the arguments supplied to contract functions.

Table of Contents

Properties

$type  : string
$value  : string

Methods

fromJson()  : ParameterResponse
getType()  : string
Gets the parameter type
getValue()  : string
Gets the encoded parameter value
setType()  : void
Sets the parameter type
setValue()  : void
Sets the encoded parameter value
loadFromJson()  : void

Properties

Methods

getType()

Gets the parameter type

public getType() : string
Return values
string

The Soroban value type (e.g., U32, Symbol, Address)

getValue()

Gets the encoded parameter value

public getValue() : string
Return values
string

The parameter value as a base64 XDR-encoded string

setType()

Sets the parameter type

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

The Soroban value type

setValue()

Sets the encoded parameter value

public setValue(string $value) : void
Parameters
$value : string

The parameter value

loadFromJson()

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

        
On this page

Search results