TransactionLinksResponse
in package
Represents HAL-style hypermedia links for transaction resources
This response provides navigational links to related resources for a transaction following the HAL (Hypertext Application Language) specification. Links enable clients to discover and traverse related resources without constructing URLs manually.
Available links include:
- self: The transaction itself
- account: The source account that created the transaction
- ledger: The ledger that includes this transaction
- operations: Operations contained in this transaction
- effects: Effects produced by this transaction
- precedes: The next transaction in chronological order
- succeeds: The previous transaction in chronological order
- transaction: Reference to the transaction resource (for fee-bump inner transactions)
All links are templated URLs that can be followed to retrieve the related resource.
Tags
Table of Contents
Methods
- fromJson() : TransactionLinksResponse
- Creates a TransactionLinksResponse instance from JSON data
- loadFromJson() : void
- Loads hypermedia links from JSON response
Methods
fromJson()
Creates a TransactionLinksResponse instance from JSON data
public
static fromJson(array<string|int, mixed> $json) : TransactionLinksResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing HAL links data from Horizon
Return values
TransactionLinksResponse —The parsed transaction links response
loadFromJson()
Loads hypermedia links from JSON response
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing HAL links data