POST
/
v1
/
hosts
/
pool-fees
Get Pool Host Fees
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/hosts/pool-fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hostNamespace": "my-cool-exchange",
  "poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
}'
{
"assetBFees": "500000",
"feeRecipientType": "host",
"hostNamespace": "my-cool-exchange",
"poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Host namespace and pool ID to retrieve fees from

Request payload for retrieving host fees from an AMM pool.

hostNamespace
string
required

Host namespace to retrieve fees for. The authenticated user must be either this host's fee recipient

Example:

"my-cool-exchange"

poolId
string
required

LP public key of the pool to retrieve host fees from. This identifies which pool to query for accumulated fees.

Example:

"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"

Response

Host fees retrieved successfully

Response containing host fees for the authenticated entity.

poolId
string
required

LP public key of the pool.

Example:

"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"

hostNamespace
string
required

Host namespace for which fees are shown.

Example:

"my-cool-exchange"

feeRecipientType
string
required

The entity for which fees are displayed.

Example:

"host"

assetBFees
integer
required

Accumulated fees for Asset B in its smallest unit.

Required range: x >= 0
Example:

"500000"