AccountLinksResponse
in package
Represents hypermedia links to related account resources
This response contains URIs to access related resources for an account such as effects, offers, operations, and transactions. These links follow HAL (Hypertext Application Language) format and enable navigation through the Horizon API.
Available links:
- effects: Link to effects involving this account
- offers: Link to offers created by this account
- operations: Link to operations involving this account
- transactions: Link to transactions submitted by this account
- self: Link to this account resource
This response is included in AccountResponse as part of the account details.
Tags
Table of Contents
Methods
- fromJson() : AccountLinksResponse
- Creates an AccountLinksResponse instance from JSON data
- getEffects() : LinkResponse
- Gets the link to effects involving this account
- getOffers() : LinkResponse
- Gets the link to offers created by this account
- getOperations() : LinkResponse
- Gets the link to operations involving this account
- getSelf() : LinkResponse
- Gets the link to this account resource
- getTransactions() : LinkResponse
- Gets the link to transactions submitted by this account
- loadFromJson() : void
Methods
fromJson()
Creates an AccountLinksResponse instance from JSON data
public
static fromJson(array<string|int, mixed> $json) : AccountLinksResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing link data from Horizon
Return values
AccountLinksResponse —The parsed links response
getEffects()
Gets the link to effects involving this account
public
getEffects() : LinkResponse
Return values
LinkResponse —Link to the effects endpoint
getOffers()
Gets the link to offers created by this account
public
getOffers() : LinkResponse
Return values
LinkResponse —Link to the offers endpoint
getOperations()
Gets the link to operations involving this account
public
getOperations() : LinkResponse
Return values
LinkResponse —Link to the operations endpoint
getSelf()
Gets the link to this account resource
public
getSelf() : LinkResponse
Return values
LinkResponse —Link to the account itself
getTransactions()
Gets the link to transactions submitted by this account
public
getTransactions() : LinkResponse
Return values
LinkResponse —Link to the transactions endpoint
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>