AssetBalancesResponse
in package
Represents total balances by authorization status for an asset
Contains aggregated balance amounts for an asset, broken down by authorization status (authorized, authorized to maintain liabilities, or unauthorized). This response is part of AssetResponse and provides insights into total asset distribution across different authorization levels.
Tags
Table of Contents
Methods
- fromJson() : AssetBalancesResponse
- getAuthorized() : string
- Gets the total balance held in fully authorized accounts
- getAuthorizedToMaintainLiabilities() : string
- Gets the total balance held in accounts authorized to maintain liabilities
- getUnauthorized() : string
- Gets the total balance held in unauthorized accounts
- loadFromJson() : void
Methods
fromJson()
public
static fromJson(array<string|int, mixed> $json) : AssetBalancesResponse
Parameters
- $json : array<string|int, mixed>
Return values
AssetBalancesResponsegetAuthorized()
Gets the total balance held in fully authorized accounts
public
getAuthorized() : string
Return values
string —The total authorized balance as a string to preserve precision
getAuthorizedToMaintainLiabilities()
Gets the total balance held in accounts authorized to maintain liabilities
public
getAuthorizedToMaintainLiabilities() : string
Return values
string —The total balance in accounts authorized to maintain liabilities
getUnauthorized()
Gets the total balance held in unauthorized accounts
public
getUnauthorized() : string
Return values
string —The total unauthorized balance
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>