Stellar PHP SDK API Documentation

ReserveResponse

Represents a reserve in a liquidity pool

Contains the amount and asset type for one of the reserves in a liquidity pool. Liquidity pools typically have two reserves representing the paired assets.

Tags
see
LiquidityPoolResponse

For the parent liquidity pool details

since
1.0.0

Table of Contents

Methods

fromJson()  : ReserveResponse
getAmount()  : string
Gets the amount of the asset in this reserve
getAsset()  : Asset
Gets the asset type for this reserve
loadFromJson()  : void

Methods

getAmount()

Gets the amount of the asset in this reserve

public getAmount() : string
Return values
string

The reserve amount as a string to preserve precision

loadFromJson()

protected loadFromJson(array<string|int, mixed> $json) : void
Parameters
$json : array<string|int, mixed>

        
On this page

Search results