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

hostNamespace
string
required

Host namespace to retrieve fees for.

Example:

"my-cool-exchange"

Response

Host fees retrieved successfully

Response containing all host fees across pools.

hostNamespace
string
required

Host namespace.

Example:

"my-cool-exchange"

feeRecipientType
string
required

The entity for which fees are displayed.

Example:

"host"

pools
object[]
required

List of pools where the host has accumulated fees.

totalAssetBFees
integer | null

Total fees across all pools for Asset B (if all pools use the same asset). This will be None if pools use different assets.

Required range: x >= 0