Clanker Documentation
  • Introduction to Clanker
  • Changelog
  • General
    • FAQ
    • Token Deployments
      • Farcaster Bot Deployments
      • Clanker.world Deployments
      • Preclank Deployments
      • Alternative Interface Deployments
    • Creator Rewards & Fees
    • Clanker.world Warning Tags
  • SDK
    • Quick Start
    • v4.0.0
    • v3.1.0
    • CLI
  • API
  • Quick Start
  • Public
    • Get Tokens
    • [PLANNED EOL] Get Tokens (Search)
  • Authenticated
    • Deploy Token (v4.0.0)
    • Get Token by Address
    • Get Tokens Deployed by Address
    • Get Estimated Rewards
    • Get Uncollected Fees
    • Deploy Token (v3.1.0)
    • Deploy Token w/Splits (v3.1.0)
  • References
    • Core Contracts
      • v4.0.0
        • Deployment Config
        • Fee Management Contracts
          • ClankerFeeLocker
          • ClankerLpLockerMultiple [Deprecated]
          • ClankerLpLockerFeeConversion
        • Extensions
          • ClankerVault
          • ClankerAirdrop
          • ClankerUniv4EthDevBuy
        • ClankerHook
          • ClankerHookStaticFee
          • ClankerHookDynamicFee
        • Mev Modules
          • ClankerMevModule2BlockDelay
          • ClankerSniperAuctionV0
        • ClankerToken
        • Administrative Permissions
      • v3.1.0
        • Clanker (Direct Contract Deployments)
        • LpLockerv2
        • ClankerVault
      • ClankerToken v3.1.0 and v4.0.0
    • Brand Assets
    • Audits
    • Compatible Trading Platforms
    • Deployed Contracts
    • Supported Quote Tokens
    • Core Team
    • Contact
Powered by GitBook
On this page
  1. Authenticated

Get Uncollected Fees

Get estimated uncollected fees (in base and quote tokens) for a specific token contract.

PreviousGet Estimated RewardsNextDeploy Token (v3.1.0)

Last updated 21 days ago

CtrlK

V3.1:

GET https://www.clanker.world/api/get-estimated-uncollected-fees/[contract_address]

For v4 clankers: you must include the reward recipient address you are getting the uncollected fee amounts for, as multiple reward recipients may be assigned for the token.

V4:

GET https://www.clanker.world/api/get-estimated-uncollected-fees/[contract_address]?rewardRecipientAddress=[reward_recipient_address]

Headers:

x-api-key: your_api_key

Query Parameters:

Parameter
Type
Description

contract_address

string

The token contract address to query

string

The reward recipient address (required for v4's)

Example Request (v3.1):

curl -X GET \
  'https://www.clanker.world/api/get-estimated-uncollected-fees/[token_address]' \
  -H 'x-api-key: your_api_key'

Example Request (v4):

curl -X GET 'http://localhost:3000/api/get-estimated-uncollected-fees/[token_address]?rewardRecipientAddress=[reward_recipient_address]' \
-H 'x-api-key: your_api_key' | jq

Response Format

Example Response:

{
  "lockerAddress": "0x618A9840691334eE8d24445a4AdA4284Bf42417D",
  "lpNftId": 1605020,
  "token1UncollectedRewards": "25549999999999",
  "token0UncollectedRewards": "256188371342895862809729",
  "token0": {
    "chainId": 8453,
    "address": "0x054E4121a946da752a5Cab371BE52B2E6A897ba8",
    "symbol": "MTK",
    "decimals": 18,
    "name": "My Token"
  },
  "token1": {
    "chainId": 8453,
    "address": "0x4200000000000000000000000000000000000006",
    "symbol": "WETH",
    "decimals": 18,
    "name": "Wrapped Ether"
  }
}

Response Fields

Top-Level Fields:

Field
Type
Description

lockerAddress

string

Address of the fee locker contract

lpNftId

integer

Unique identifier for the liquidity position NFT

token0UncollectedRewards

string

Uncollected rewards for token0 (in base units)

token1UncollectedRewards

string

Token Object Fields:

Field
Type
Description

chainId

integer

Chain ID where the token is deployed

address

string

Token contract address

symbol

string

Token symbol

decimals

integer

Uncollected rewards for token1 (in base units)

token0

object

Details of the first token in the pair

token1

object

Details of the second token in the pair

Number of decimal places for the token

name

string

Token name

rewardRecipientAddress