SorobanDelegateDescriptor
in package
Descriptor used when constructing a delegate tree for an ADDRESS_WITH_DELEGATES entry.
Pass an array of SorobanDelegateDescriptor objects to SorobanAuthorizationEntry::withDelegates(). Each descriptor identifies a delegate node by its strkey address and, optionally, an initial signature and nested sub-delegates.
The $signature defaults to void; the SDK will sign the node later via sign(forAddress:). The $nestedDelegates array will be sorted by XDR-encoded address bytes during tree construction.
Tags
Table of Contents
Properties
- $address : string
- $nestedDelegates : array<string|int, SorobanDelegateDescriptor>
- $signature : XdrSCVal|null
Methods
- __construct() : mixed
Properties
$address
public
string
$address
strkey of the delegate address (G- or C-prefixed)
$nestedDelegates
public
array<string|int, SorobanDelegateDescriptor>
$nestedDelegates
nested delegate descriptors
$signature
public
XdrSCVal|null
$signature
initial signature; null defaults to void
Methods
__construct()
public
__construct(string $address[, XdrSCVal|null $signature = null ][, array<string|int, SorobanDelegateDescriptor> $nestedDelegates = [] ]) : mixed
Parameters
- $address : string
-
strkey of the delegate address (G- or C-prefixed)
- $signature : XdrSCVal|null = null
-
initial signature value; null for void
- $nestedDelegates : array<string|int, SorobanDelegateDescriptor> = []
-
nested delegate descriptors