POST
/
v1
/
hosts
/
host-fees
Get Host Fees
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/hosts/host-fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hostNamespace": "my-cool-exchange"
}'
{
"feeRecipientType": "host",
"hostNamespace": "my-cool-exchange",
"pools": [
{
"assetAFees": "1000000",
"assetAPubkey": "03abcdef123...",
"assetBFees": "500000",
"assetBPubkey": "03fedcba321...",
"poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
}
],
"totalAssetAFees": "1000000",
"totalAssetBFees": "500000"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Host namespace to retrieve fees for

Request payload for retrieving all host fees.

Response

200
application/json

Host fees retrieved successfully

Response containing all host fees across pools.