> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# FeeLedgerEntry

> One fee, tax, tip or rebate paid in a swap's transaction. FeeLedgerEntry type reference: every field and its type.

## GraphQL

```
type FeeLedgerEntry {
  kind: FeeKind!
  token: String!
  amountRaw: String!
  amount: String
  tokenDecimals: Int
  amountSource: FeeAmountSource!
  rate: String
  scope: FeeScope!
  amountUsd: String
  swapShareUsd: String
  inTotalFees: Boolean!
  recipient: String
  payer: String
  recipientName: String
  recipientId: String
  recipientRole: FeeRecipientRole
  settlement: FeeSettlement
}

enum FeeKind {
  POOL_FEE
  PROTOCOL_SHARE
  CREATOR_SHARE
  PARTNER_SHARE
  BASE_FEE
  PRIORITY_FEE
  L1_DATA_FEE
  TIP
  APP_FEE
  ROUTER_FEE
  TOKEN_TAX
  REBATE
  OTHER_TRANSFER
}

enum FeeAmountSource {
  OBSERVED
  REPORTED
  ESTIMATED
  RECEIPT
  UNKNOWN
}

enum FeeScope {
  SWAP
  TRANSACTION
  UNKNOWN
}

enum FeeRecipientRole {
  CREATOR
  PROTOCOL
  REFERRER
  HOST
  BUYBACK
  REWARDS
}

enum FeeSettlement {
  PAID_OUT
  HELD_BY_VENUE
  ACCRUED
}
```

### Used By

**Returned by**

* [getTokenEvents](https://docs.codex.io/api-reference/queries/gettokenevents.md): Returns transactions for a pair.
* [getTokenEventsForMaker](https://docs.codex.io/api-reference/queries/gettokeneventsformaker.md): Returns a list of token events for a given maker (wallet address).
* [onEventsCreated](https://docs.codex.io/api-reference/subscriptions/oneventscreated.md): Live-streamed transactions for a pair.
* [onEventsCreatedByMaker](https://docs.codex.io/api-reference/subscriptions/oneventscreatedbymaker.md): Live-streamed transactions for a maker.
* [onTokenEventsCreated](https://docs.codex.io/api-reference/subscriptions/ontokeneventscreated.md): Live-streamed events for a given token across all it's pools


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.