AssetFlagsResponse
in package
Represents authorization flags set on an asset
Contains boolean flags indicating the authorization requirements and capabilities set by the asset issuer. These flags control trustline authorization requirements, revocability, mutability, and clawback capabilities.
Tags
Table of Contents
Methods
- fromJson() : AssetFlagsResponse
- isAuthClawbackEnabled() : bool
- Checks if clawback is enabled for this asset
- isAuthImmutable() : bool
- Checks if these authorization flags are immutable
- isAuthRequired() : bool
- Checks if authorization is required for accounts to hold this asset
- isAuthRevocable() : bool
- Checks if the issuer can revoke authorization for this asset
- loadFromJson() : void
Methods
fromJson()
public
static fromJson(array<string|int, mixed> $json) : AssetFlagsResponse
Parameters
- $json : array<string|int, mixed>
Return values
AssetFlagsResponseisAuthClawbackEnabled()
Checks if clawback is enabled for this asset
public
isAuthClawbackEnabled() : bool
When true, the issuer can clawback this asset from accounts.
Return values
bool —True if clawback is enabled
isAuthImmutable()
Checks if these authorization flags are immutable
public
isAuthImmutable() : bool
When true, the flags cannot be changed by the issuer.
Return values
bool —True if authorization flags are immutable
isAuthRequired()
Checks if authorization is required for accounts to hold this asset
public
isAuthRequired() : bool
Return values
bool —True if authorization is required
isAuthRevocable()
Checks if the issuer can revoke authorization for this asset
public
isAuthRevocable() : bool
Return values
bool —True if authorization is revocable
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>