Stellar PHP SDK API Documentation

AssetAccountsResponse

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
see
AssetResponse

For the parent asset details

see
https://developers.stellar.org

Stellar developer docs Horizon Assets API

since
1.0.0

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

getAuthorized()

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>

        
On this page

Search results