ResourceConfig
in package
Part of the soroban simulate transaction request.
Tags
Table of Contents
Properties
- $instructionLeeway : int
Methods
- __construct() : mixed
- Constructor.
- getInstructionLeeway() : int
- getRequestParams() : array<string, mixed>
- Builds and returns the request parameters array for the RPC API call.
- setInstructionLeeway() : void
Properties
$instructionLeeway
public
int
$instructionLeeway
Methods
__construct()
Constructor.
public
__construct(int $instructionLeeway) : mixed
Parameters
- $instructionLeeway : int
-
The number of additional CPU instructions to reserve for budget leeway in preflight calculations.
getInstructionLeeway()
public
getInstructionLeeway() : int
Return values
int —The number of additional CPU instructions to reserve for budget leeway in preflight calculations.
getRequestParams()
Builds and returns the request parameters array for the RPC API call.
public
getRequestParams() : array<string, mixed>
Return values
array<string, mixed> —The request parameters formatted for Soroban RPC
setInstructionLeeway()
public
setInstructionLeeway(int $instructionLeeway) : void
Parameters
- $instructionLeeway : int
-
The number of additional CPU instructions to reserve for budget leeway in preflight calculations.