Stellar PHP SDK API Documentation

AnchorFeatureFlags

Represents optional features supported by an anchor for deposit and withdrawal operations.

Contains flags indicating whether the anchor supports account creation for users and whether claimable balances can be used for deposits.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v4.3.0/ecosystem/sep-0006.md

SEP-06 Specification

Table of Contents

Properties

$accountCreation  : bool
$claimableBalances  : bool

Methods

fromJson()  : AnchorFeatureFlags
Constructs a new instance of AnchorFeatureFlags by using the given data.

Properties

$accountCreation

public bool $accountCreation = true

Whether the anchor supports creating accounts for users requesting deposits. Defaults to true.

$claimableBalances

public bool $claimableBalances = false

Whether the anchor supports sending deposit funds as claimable balances. This is relevant for users of Stellar accounts without a trustline to the requested asset. Defaults to false.

Methods

fromJson()

Constructs a new instance of AnchorFeatureFlags by using the given data.

public static fromJson(array<string|int, mixed> $json) : AnchorFeatureFlags
Parameters
$json : array<string|int, mixed>

the data to construct the object from.

Return values
AnchorFeatureFlags

the object containing the parsed data.


        
On this page

Search results