Stellar PHP SDK API Documentation

InstallRequest

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
see
SorobanClient::install()

For the installation method that uses this request

see
DeployRequest

For deploying contract instances from installed WASM

see
https://developers.stellar.org/docs/smart-contracts/getting-started/deploy-to-testnet
since
1.0.0

Table of Contents

Properties

$enableServerLogging  : bool
$network  : Network
$rpcUrl  : string
$sourceAccountKeyPair  : KeyPair
$wasmBytes  : string

Methods

__construct()  : mixed

Properties

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.


        
On this page

Search results