This endpoint allows authenticated hosts to retrieve all accumulated trading fees across all AMM pools where they have earned fees. The authenticated user must be either the host’s fee recipient or Flashnet.
The authenticated token’s public key must match either:
The AMM system tracks host fees separately for each pool. This endpoint aggregates all fees across pools where the host has activity.
hostNamespace
- The host namespace to query fees forReturns:
host_namespace
- Host namespace identifier200 OK
with fee information for all pools400 Bad Request
if request is invalid401 Unauthorized
if authentication fails403 Forbidden
if not authorized to view this host’s fees404 Not Found
if 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 to retrieve fees for
Request payload for retrieving all host fees.
Host fees retrieved successfully
Response containing all host fees across pools.