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"
}'
{
"assetAFees": "1000000",
"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.

Response

200
application/json

Host fees retrieved successfully

Response containing host fees for the authenticated entity.