AssetAccountsResponse
in package
Represents account counts by authorization status for an asset
Contains statistics about the number of accounts holding an asset, broken down by authorization status (authorized, authorized to maintain liabilities, or unauthorized). This response is part of AssetResponse and provides insights into asset distribution and trustline authorization states.
Tags
Table of Contents
Methods
- fromJson() : AssetAccountsResponse
- getAuthorized() : int
- Gets the number of fully authorized accounts holding this asset
- getAuthorizedToMaintainLiabilities() : int
- Gets the number of accounts authorized to maintain liabilities
- getUnauthorized() : int
- Gets the number of unauthorized accounts
- loadFromJson() : void
Methods
fromJson()
public
static fromJson(array<string|int, mixed> $json) : AssetAccountsResponse
Parameters
- $json : array<string|int, mixed>
Return values
AssetAccountsResponsegetAuthorized()
Gets the number of fully authorized accounts holding this asset
public
getAuthorized() : int
Return values
int —The count of authorized accounts
getAuthorizedToMaintainLiabilities()
Gets the number of accounts authorized to maintain liabilities
public
getAuthorizedToMaintainLiabilities() : int
These accounts can maintain existing offers but cannot receive new funds.
Return values
int —The count of accounts authorized to maintain liabilities
getUnauthorized()
Gets the number of unauthorized accounts
public
getUnauthorized() : int
Return values
int —The count of unauthorized accounts
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>