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 fees retrieved successfully
Response containing host fees for the authenticated entity.