SEP30SignatureResponse
in package
Response containing transaction signature from SEP-0030 recovery server.
This class represents the response from POST /accounts/{address}/sign/{signing_address} endpoint, containing the signature and network passphrase for the signed transaction.
Tags
Table of Contents
Properties
- $networkPassphrase : string
- $signature : string
Methods
- __construct() : mixed
- fromJson() : SEP30SignatureResponse
- Constructs a SEP30SignatureResponse from JSON data.
- getNetworkPassphrase() : string
- Gets the network passphrase.
- getSignature() : string
- Gets the transaction signature.
- setNetworkPassphrase() : void
- Sets the network passphrase.
- setSignature() : void
- Sets the transaction signature.
Properties
$networkPassphrase
public
string
$networkPassphrase
$signature
public
string
$signature
Methods
__construct()
public
__construct(string $signature, string $networkPassphrase) : mixed
Parameters
- $signature : string
-
The transaction signature in base64 format.
- $networkPassphrase : string
-
The Stellar network passphrase.
fromJson()
Constructs a SEP30SignatureResponse from JSON data.
public
static fromJson(array<string|int, mixed> $json) : SEP30SignatureResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON data to parse.
Return values
SEP30SignatureResponse —The constructed response.
getNetworkPassphrase()
Gets the network passphrase.
public
getNetworkPassphrase() : string
Return values
string —The network passphrase.
getSignature()
Gets the transaction signature.
public
getSignature() : string
Return values
string —The signature in base64 format.
setNetworkPassphrase()
Sets the network passphrase.
public
setNetworkPassphrase(string $networkPassphrase) : void
Parameters
- $networkPassphrase : string
-
The network passphrase.
setSignature()
Sets the transaction signature.
public
setSignature(string $signature) : void
Parameters
- $signature : string
-
The signature in base64 format.