Skip to main content
FeeKind!
What kind of charge this is. Classification is refined over time: see FeeLedger. See FeeKind
String!
The token the amount is in: a token address in full, or native for the network’s native coin (ETH on Ethereum, SOL on Solana). An amount in the wrapped form of the native coin (for example WETH) is shown as native.
String!
The whole amount in the token’s smallest unit, as an integer string. Negative for a rebate. For a TRANSACTION entry this is the amount for the whole transaction, not this swap’s share.
String
The same amount in whole tokens: amountRaw shifted by tokenDecimals, as a plain decimal string with no exponent and no trailing zeros (0.0015 for 1500 smallest units of a 6-decimal token). Negative for a rebate. Null when Codex does not know the token’s decimals.
Int
The number of decimals amount is shifted by: the token’s decimals, or the native coin’s decimals for native. Null when Codex does not know the token’s decimals, and amount is then null too.
FeeAmountSource!
How the amount is known. See FeeAmountSource
String
The rate applied, as a fraction of the swap’s value (0.003 means 0.3%). Set only when amountSource is ESTIMATED.
FeeScope!
Whether the entry belongs to this swap alone or is a cost of the whole transaction, shared equally by its swaps. See FeeScope
String
The whole amount in USD, rounded to 12 decimal places. Null when the token had no price within one hour before the swap.
String
This swap’s share in USD, rounded to 12 decimal places. Equal to amountUsd for a SWAP entry, and amountUsd / transactionSwapCount for a TRANSACTION entry. Null when the token had no price within one hour before the swap. Always null for an entry that Codex could not read, and null for every entry of the swap when such an entry has a negative amount: see UNREADABLE_ENTRY.
Boolean!
Whether swapShareUsd is part of totalFeesUsd and of the pair’s totalFees statistics: totalFeesUsd is the sum of the entries where this is true. False for OTHER_TRANSFER. False for an entry with no swapShareUsd. A pool fee and its shares are never both counted, since shares come out of the pool fee: false for the shares when the pool fee is at least their sum, false for the pool fee when its shares add up to more than it, and false for both when the pool fee has no USD value. A share that was set aside (ACCRUED) or only reported by the swap’s event (REPORTED) is always false. False for a rebate that matches no charge in this ledger, and for a rebate and the charge it reduces when the rebate is larger than the charge or either has no USD value. Classification is refined over time: see FeeLedger.
String
The address that received the amount, in full. For a POOL_FEE, the pool that kept the fee for the venue and its liquidity providers: the address that holds the pool’s reserves. That is the pair’s own address for most pools, the shared contract for a venue that holds many pools in one contract (a Uniswap V4 PoolManager, a launchpad’s curve contract), and on Solana the account that owns the pool’s token accounts. For a rebate, the trader’s account that got the amount back. Null for gas, for a POOL_FEE when Codex could not tell which address holds the reserves, for a share that was set aside and not paid (settlement is ACCRUED), for a REPORTED share, and for entries of any other kind merged under ENTRIES_MERGED.
String
The address the amount was observed leaving, in full. For an OBSERVED entry, the sender of the transfer to recipient (the largest sender when several addresses paid that recipient). For BASE_FEE, PRIORITY_FEE and L1_DATA_FEE, the transaction’s fee payer. For a rebate, the account it was paid from, usually the venue’s or the app’s. Null for REPORTED and ESTIMATED entries, where no transfer was observed, for a POOL_FEE, and for entries merged under ENTRIES_MERGED.
String
Human-readable name of the known app, protocol or service behind recipient, e.g. Jito. For a POOL_FEE, the name of the venue the pool belongs to, e.g. Uniswap Protocol: Codex knows it from the contract or program that created the pool, or from the launchpad that owns it, so it can be set when recipient is null. Queries show the registry’s current name; subscriptions and webhooks show the name at the time the swap was indexed. Null when the address, or for a POOL_FEE the venue, is not in Codex’s registry, and for a rebate, whose recipient is the trader.
String
Stable identifier of the known app, protocol or service behind recipient, e.g. jito. For a POOL_FEE, the identifier of the venue the pool belongs to, e.g. uniswap-protocol. It stays the same for that recipient as far as Codex can keep it, but Codex may merge or split recipients. Null when the address, or for a POOL_FEE the venue, is not in Codex’s registry, and for a rebate, whose recipient is the trader. A null id does not mean the recipient stays unknown: a later swap can carry one.
FeeRecipientRole
The part the venue gave this recipient, when the venue names one. Null otherwise, and always null for a POOL_FEE. See FeeRecipientRole
FeeSettlement
Whether the amount left the venue during the trade: PAID_OUT, HELD_BY_VENUE or ACCRUED. It is separate from kind and amountSource: an ESTIMATED or REPORTED pool fee can be PAID_OUT. Null when Codex cannot tell: a POOL_FEE of which only a part left (each part is its own PAID_OUT entry); a POOL_FEE on a swap whose ledger has a gap other than GAS_UNKNOWN and ENTRIES_MERGED; a POOL_FEE when an OTHER_TRANSFER may have come from the venue: followed back through every address that sent it on, the trader excepted, it came from the venue’s hook or other contract, from a pool address that paid out more of that token than its swaps explain or that also had liquidity added or removed in the transaction, straight from a pool address in the fee’s token (the swap’s own output aside), or from a sender Codex did not see; entries merged under ENTRIES_MERGED that did not all settle the same way; and every entry of a swap indexed before this field existed. See FeeSettlement

Used By

Returned by
Last modified on December 2, 2026