InstallRequest
in package
Request parameters for installing Soroban smart contract WASM code
This class encapsulates all parameters needed to upload and install contract WASM bytecode to the Stellar network. The installation process stores the WASM code on-chain and returns a hash that can be used later to deploy contract instances via DeployRequest.
Installation is a prerequisite for deployment. The same WASM code only needs to be installed once and can then be used to deploy multiple contract instances.
Tags
Table of Contents
Properties
- $enableServerLogging : bool
- $network : Network
- $rpcUrl : string
- $sourceAccountKeyPair : KeyPair
- $wasmBytes : string
Methods
- __construct() : mixed
Properties
$enableServerLogging
public
bool
$enableServerLogging
= false
$network
public
Network
$network
$rpcUrl
public
string
$rpcUrl
$sourceAccountKeyPair
public
KeyPair
$sourceAccountKeyPair
$wasmBytes
public
string
$wasmBytes
Methods
__construct()
public
__construct(string $wasmBytes, string $rpcUrl, Network $network, KeyPair $sourceAccountKeyPair[, bool $enableServerLogging = false ]) : mixed
Parameters
- $wasmBytes : string
-
The contract code WASM bytes to install.
- $rpcUrl : string
-
The URL of the RPC instance that will be used to install the contract.
- $network : Network
-
The Stellar network this contract is to be installed to.
- $sourceAccountKeyPair : KeyPair
-
Keypair of the Stellar account that will send this transaction. The keypair must contain the private key for signing.
- $enableServerLogging : bool = false
-
Enable soroban server logging (helpful for debugging). Default: false.