SEP30ResponseSigner
in package
Signer information in SEP-0030 account responses.
This class represents a signer public key that can be used to sign transactions for account recovery operations.
Tags
Table of Contents
Properties
- $key : string
Methods
- __construct() : mixed
- fromJson() : SEP30ResponseSigner
- Constructs a SEP30ResponseSigner from JSON data.
- getKey() : string
- Gets the signer's public key.
- setKey() : void
- Sets the signer's public key.
Properties
$key
public
string
$key
Methods
__construct()
public
__construct(string $key) : mixed
Parameters
- $key : string
-
The signer's public key in Stellar G... format. This key should be added to the account as a signer.
fromJson()
Constructs a SEP30ResponseSigner from JSON data.
public
static fromJson(array<string|int, mixed> $json) : SEP30ResponseSigner
Parameters
- $json : array<string|int, mixed>
-
The JSON data to parse.
Return values
SEP30ResponseSigner —The constructed signer.
getKey()
Gets the signer's public key.
public
getKey() : string
Return values
string —The Stellar public key in G... format that the server uses to sign transactions. This key should be added as a signer to the account with appropriate weight.
setKey()
Sets the signer's public key.
public
setKey(string $key) : void
Parameters
- $key : string
-
The Stellar public key in G... format.