ClientOptions
in package
Client configuration options for Soroban smart contract interactions
This class defines the core configuration required for a SorobanClient to interact with smart contracts on the Stellar network. It specifies the source account, target contract, network parameters, and RPC endpoint.
Tags
Table of Contents
Properties
- $contractId : string
- $logger : LoggerInterface|null
- $network : Network
- $rpcUrl : string
- $sourceAccountKeyPair : KeyPair
Methods
- __construct() : mixed
Properties
$contractId
public
string
$contractId
$logger
public
LoggerInterface|null
$logger
= null
$network
public
Network
$network
$rpcUrl
public
string
$rpcUrl
$sourceAccountKeyPair
public
KeyPair
$sourceAccountKeyPair
Methods
__construct()
public
__construct(KeyPair $sourceAccountKeyPair, string $contractId, Network $network, string $rpcUrl[, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $sourceAccountKeyPair : KeyPair
-
Keypair of the Stellar account that will send transactions. For read-only operations, only the public key is required. For write operations and automatic restore, the private key (secret seed) must be included for transaction signing.
- $contractId : string
-
The address of the contract the client will interact with.
- $network : Network
-
The Stellar network this contract is deployed to.
- $rpcUrl : string
-
The URL of the RPC instance that will be used to interact with this contract.
- $logger : LoggerInterface|null = null
-
PSR-3 logger for debug output. Default: null (no logging).