Stellar PHP SDK API Documentation

AccountBalancesResponse extends IteratorIterator

Represents a collection of account balances

This iterable collection holds all asset balances for an account including native XLM and all trustline balances. The collection is included in AccountResponse and provides iterator functionality to traverse all balance entries.

Tags
see
AccountResponse

For the parent account details

see
AccountBalanceResponse

For individual balance entries

since
1.0.0

Table of Contents

Methods

__construct()  : mixed
Creates a new collection of account balances
add()  : mixed
Adds a balance entry to the collection
count()  : int
Gets the number of balance entries in the collection
current()  : AccountBalanceResponse
Gets the current balance in the iteration
toArray()  : array<string|int, AccountBalanceResponse>
Converts the collection to an array

Methods

count()

Gets the number of balance entries in the collection

public count() : int
Return values
int

The count of balance entries


        
On this page

Search results