SEP30AccountResponse
in package
Response containing registered account information from SEP-0030 recovery server.
This class represents account data including the address, registered identities, and signers that can be used for multi-party account recovery operations.
Tags
Table of Contents
Properties
- $address : string
- $identities : array<string|int, mixed>
- $signers : array<string|int, mixed>
Methods
- __construct() : mixed
- fromJson() : SEP30AccountResponse
- Constructs a SEP30AccountResponse from JSON data.
- getAddress() : string
- Gets the Stellar account address.
- getIdentities() : array<string|int, SEP30ResponseIdentity>
- Gets the registered identities.
- getSigners() : array<string|int, SEP30ResponseSigner>
- Gets the account signers.
- setAddress() : void
- Sets the Stellar account address.
- setIdentities() : void
- Sets the registered identities.
- setSigners() : void
- Sets the account signers.
Properties
$address
public
string
$address
$identities
public
array<string|int, mixed>
$identities
$signers
public
array<string|int, mixed>
$signers
Methods
__construct()
public
__construct(string $address, array<string|int, SEP30ResponseIdentity> $identities, array<string|int, SEP30ResponseSigner> $signers) : mixed
Parameters
- $address : string
-
The Stellar account address.
- $identities : array<string|int, SEP30ResponseIdentity>
-
Registered identity owners.
- $signers : array<string|int, SEP30ResponseSigner>
-
Account signers for recovery.
fromJson()
Constructs a SEP30AccountResponse from JSON data.
public
static fromJson(array<string|int, mixed> $json) : SEP30AccountResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON data to parse.
Return values
SEP30AccountResponse —The constructed response.
getAddress()
Gets the Stellar account address.
public
getAddress() : string
Return values
string —The account address.
getIdentities()
Gets the registered identities.
public
getIdentities() : array<string|int, SEP30ResponseIdentity>
Return values
array<string|int, SEP30ResponseIdentity> —Array of identity information.
getSigners()
Gets the account signers.
public
getSigners() : array<string|int, SEP30ResponseSigner>
Return values
array<string|int, SEP30ResponseSigner> —Array of signer information.
setAddress()
Sets the Stellar account address.
public
setAddress(string $address) : void
Parameters
- $address : string
-
The account address.
setIdentities()
Sets the registered identities.
public
setIdentities(array<string|int, SEP30ResponseIdentity> $identities) : void
Parameters
- $identities : array<string|int, SEP30ResponseIdentity>
-
Array of identity information.
setSigners()
Sets the account signers.
public
setSigners(array<string|int, SEP30ResponseSigner> $signers) : void
Parameters
- $signers : array<string|int, SEP30ResponseSigner>
-
Array of signer information.