You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Horizon already provides an endpoint to query account details. This endpoint will be modified in the case that the account is an LP for a liquidity pool. We will add an extra balance object in the response to describe how many shares of the liquidity pool are held by the account.
In the account response there is a balances field which consists of a list of balance objects. We will introduce the following breaking changes on the balance object which is included in the balances list:
asset_type can be liquidity_pool_shares. Previously the asset_type field was restricted to: native, credit_alphanum4, or credit_alphanum12.
buying_liabilities, selling_liabilities, asset_code, and asset_issuer are removed from the response for pool shares because they are not relevant to liquidity pools.
We also want to add an endpoint to get accounts by a given liquidity pool.
GET /accounts?liquidity_pool=abcdef
Horizon already provides an endpoint to query accounts by one of three filters: signer, asset, or sponsor. We will add another filter, liquidity_pool, which will return all accounts who have a trustline for the given pool.
Horizon already provides an endpoint to query account details. This endpoint will be modified in the case that the account is an LP for a liquidity pool. We will add an extra balance object in the response to describe how many shares of the liquidity pool are held by the account.
In the account response there is a balances field which consists of a list of balance objects. We will introduce the following breaking changes on the balance object which is included in the balances list:
asset_type
can beliquidity_pool_shares
. Previously theasset_type
field was restricted to:native
,credit_alphanum4
, orcredit_alphanum12
.buying_liabilities
,selling_liabilities
,asset_code
, andasset_issuer
are removed from the response for pool shares because they are not relevant to liquidity pools.We also want to add an endpoint to get accounts by a given liquidity pool.
GET /accounts?liquidity_pool=abcdef
Horizon already provides an endpoint to query accounts by one of three filters: signer, asset, or sponsor. We will add another filter, liquidity_pool, which will return all accounts who have a trustline for the given pool.
More details about this feature can be found in https://docs.google.com/document/d/1pXL8kr1a2vfYSap9T67R-g72B_WWbaE1YsLMa04OgoU/edit#
The text was updated successfully, but these errors were encountered: