This endpoint allows authenticated hosts to retrieve their accumulated trading fees from a specific AMM pool. Only the fees for the authenticated entity are returned.
The authenticated token’s public key must match the host’s fee recipient public key (to see host’s portion)
This ensures hosts can only view their own fees.
The AMM system tracks fees separately for:
hostNamespace - The host namespace to query fees forpoolId - The LP public key of the pool to queryReturns fee information for the authenticated entity:
host_namespace - Host namespace identifierpool_id - Pool identifier (LP public key)200 OK with fee information for authenticated entity400 Bad Request if request is invalid401 Unauthorized if authentication fails403 Forbidden if not authorized to view this host’s fees404 Not Found if pool or host does not exist500 Internal Server Error if fee retrieval failsBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Host namespace and pool ID to retrieve fees from
Request payload for retrieving host fees from an AMM pool.
Host namespace to retrieve fees for. The authenticated user must be either this host's fee recipient
"my-cool-exchange"
LP public key of the pool to retrieve host fees from. This identifies which pool to query for accumulated fees.
"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
Host fees retrieved successfully
Response containing host fees for the authenticated entity.
LP public key of the pool.
"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
Host namespace for which fees are shown.
"my-cool-exchange"
The entity for which fees are displayed.
"host"
Accumulated fees for Asset B in its smallest unit.
x >= 0"500000"