ParameterResponse
in package
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
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
$type
public
string
$type
$value
public
string
$value
Methods
fromJson()
public
static fromJson(array<string|int, mixed> $json) : ParameterResponse
Parameters
- $json : array<string|int, mixed>
Return values
ParameterResponsegetType()
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>