Stellar PHP SDK API Documentation

SorobanAddressCredentialsWithDelegates

Address credentials with a delegate tree for Soroban WITH_DELEGATES authorization (Protocol 27, CAP-71).

This is the hand-written wrapper for the ADDRESS_WITH_DELEGATES credential arm. It pairs the top-level SorobanAddressCredentials (address, nonce, signatureExpirationLedger, signature) with a sorted array of SorobanDelegateSignature nodes that can authorize the same entry.

Invariants:

  • $delegates must be sorted ascending by the complete XDR-encoded bytes of each delegate's XdrSCAddress before submission; no duplicates within this array.
  • The top-level $addressCredentials carries the nonce and signatureExpirationLedger. Delegate nodes carry neither.
  • An empty $delegates array is structurally valid and behaves like ADDRESS_V2.
Tags
see
SorobanDelegateSignature
SorobanCredentials
since

Protocol 27 (CAP-71)

Table of Contents

Properties

$addressCredentials  : SorobanAddressCredentials
$delegates  : array<string|int, SorobanDelegateSignature>

Methods

__construct()  : mixed
fromXdr()  : SorobanAddressCredentialsWithDelegates
Creates a SorobanAddressCredentialsWithDelegates from its XDR representation.
getAddressCredentials()  : SorobanAddressCredentials
Returns the top-level address credentials.
getDelegates()  : array<string|int, SorobanDelegateSignature>
Returns the delegate nodes array.
setAddressCredentials()  : void
Sets the top-level address credentials.
setDelegates()  : void
Sets the delegate nodes array.
toXdr()  : XdrSorobanAddressCredentialsWithDelegates
Converts this object to its XDR representation.

Properties

Methods

On this page

Search results