← docs

LumpFun Cardano API

Public endpoints of the LumpFun Cardano launchpad. JSON, no authentication, no API keys. Base URL: https://lumpfun.com. Per-IP rate limits apply — reads are generous, transaction building is tighter, and exceeding either returns 429 with a retry-after header (numbers under Rate limits). Requests are same-origin by default: these routes send no CORS headers, so call them from a server rather than a browser on another origin.

All bigint values (lovelace, token quantities, reserves) are returned as strings to preserve precision; parse them with BigInt, never Number.

Three pool generations are live. A token's poolVersion says which it is. Current launches are v5: a bonding curve that is graduated into a Splash DEX pool after it sells out. On the current v5 cohort a buy or a sell places an order, and a settler fills it against the pool. v3 tokens trade on a bonding curve that graduates in place into a permanent AMM pool — the same UTxO, flipped by a datum field, tradable forever afterwards on LumpSwap. Older v1/v2 tokens are historical (a token with no poolVersion is v1). Several endpoints serve only some generations; each notes where it matters.

GET

/api/tokens

List every token registered with LumpFun, ordered newest first. Each entry is the full TokenMetarecord — the same shape stored in the registry. No parameters.

Response (200) — array of:

{
  "policyId":        "a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba293",
  "assetName":       "42554e4e59",                // hex of utf-8 ticker
  "ticker":          "BUNNY",
  "name":            "Dust Bunny",
  "poolVersion":     "v5",                        // "v2" | "v3" | "v5"; absent = v1
  "curveAddress":    "addr1w...",                 // pool script address
  "creatorAddress":  "addr1q...",                 // bech32 of creator wallet
  "creatorFeeBps":   100,                         // 100 = 1%
  "validatorCbor":   "59...",                     // pool script (PlutusV3)
  "seedTxHash":      "cfb28d...",                 // launch seed UTxO; the policy ID
  "seedOutputIndex": 0,                           //   is derived from it (v2 and later)
  "imageUri":        "/uploads/....webp",         // site-relative path, or an
                                                  //   https:// or ipfs:// URL
  "description":     "...",
  "website":         "https://...",               // all socials optional
  "twitter":         "@handle",
  "telegram":        "t.me/...",
  "discord":         "discord.gg/...",
  "launchedAt":      "2026-10-23T22:50:03.984Z",
  "hidden":          true,                        // only when set: kept off the board,
                                                  //   still tradable

  // v5 tokens:
  "v5CohortId":      "ada-order",                 // "ada-order" trades through orders,
                                                  //   "ada" trades directly
  "vaultAddress":    "addr1w...",                 // vault script address
  "creatorShareBps": 0,                           // reward split: 10000 = all to the creator,
                                                  //   5000 = half each, 0 = all to holders
  "rewardPolicy":    "737977...",                 // token holders are paid in;
  "rewardName":      "4c756d70",                  //   absent = paid in ADA
  "refPoolPolicy":   "d8eb52...",                 // NFT of that token's reference pool
  "refPoolName":     "9f4408...",

  // v1–v3 tokens:
  "treasuryAddress":       "addr1q...",           // platform-fee recipient fixed at launch
  "treasuryPkh":           "...",
  "creatorPaymentHash":    "...",                 // hash the pool pays creator fees to
  "graduationAdaLovelace": "21000000000",         // v1/v2 threshold, default 21k ADA
  "ammFlipTxHash":         "...",                 // v2: set once the pool flipped to its AMM phase

  // Set when a v1 token has graduated:
  "graduatedTxHash":      "f326c7...",
  "graduatedAt":          "2026-05-06T...",
  "minswapPoolTxHash":    "77d4bd...",
  "minswapPoolId":        "ec11a2...4d5547",
  "poolAdaLovelace":      "12000000",
  "poolTokens":           "3970836",

  // Set on v1–v3 tokens launched after the fee accumulator shipped:
  "feeAccumulatorAddress":         "addr1w...",
  "feeAccumulatorValidatorCbor":   "...",
  "feeAccumulatorClaimedTxHash":   "...",

  // Token locks. The first four are a launch-time lock on older tokens;
  // every lock made since is an entry in extraVestings:
  "vestingAddress":         "addr1w...",
  "vestingValidatorCbor":   "...",
  "vestingUnlockMs":        1799123456000,
  "vestingClaimedTxHash":   "...",
  "extraVestings": [
    {
      "address":       "addr1w...",               // lock script address
      "validatorCbor": "...",
      "unlockMs":      1795388847881,             // POSIX ms
      "addedAt":       "2026-10-23T23:08:08.994Z",
      "lockerAddress": "addr1q...",               // wallet that locked; absent on old entries
      "claimedTxHash": "..."                      // set once claimed back
    }
  ]
}

Fields that do not apply to a token are absent, not null. The record does not say whether a v3 or v5 token has graduated; read that from /api/token/{policyId} or the pool endpoints.

Returns 503 with {"error":"registry unavailable","kind":"read_failed"} when the registry cannot be read. A failed read is never answered with an empty list.

curl

curl https://lumpfun.com/api/tokens

ts

const tokens = await fetch('https://lumpfun.com/api/tokens').then(r => r.json());
for (const t of tokens) {
  console.log(t.ticker, t.policyId);
}
GET

/api/token/{policyId}

Single token lookup with live pool state attached. Cheaper than fetching /api/tokens and filtering when you already know the policy ID.

Response (200):

{
  ...all TokenMeta fields,
  "live": {
    "adaReserve":    "3821706662",     // lovelace in the pool's reserve
    "tokenReserve":  "512485498",      // tokens still in the pool
    "priceLovelace": "13830961",       // spot price, lovelace per token.
                                       // NOTE: SCALED BY 1e6. To get ADA/token
                                       // divide by 1e12, not 1e6 — the 1e6 is a
                                       // fixed-point scale, and the lovelace→ADA
                                       // conversion is a second 1e6.
    "marketCapAda":  13830.961,        // priceLovelace * total_supply / 1e12
    "bondedPct":     64.98,            // 0–100, 100 = at graduation
    "graduated":     false
  }
}

What live holds depends on the pool generation:

  • v5 — adaReserve is the ADA raised on the curve and tokenReserve the tokens left in the pool. graduatedturns true when the curve is sold out. After graduation both reserves are the Splash pool's and bondedPct is 100.
  • v3 — reserves from the pool datum. graduated is true once the pool is in its AMM phase; it keeps trading.
  • v1/v2 — reserves from the curve datum. A v1 token that graduated to Minswap gets live from its recorded poolAdaLovelace / poolTokens, with bondedPct 100.

live is null when no pool state can be found for the token. Returns 404 with {"error":"not found"} for a policy ID that is not in the registry.

curl

curl https://lumpfun.com/api/token/a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba293
GET

/api/board

Every listed token with its live price in one call — the same list the site's board shows. Use it instead of calling /api/token/{policyId} once per token. Tokens marked hidden are left out. No parameters.

Response (200) — array of:

{
  "policyId":       "a1b085f4...",
  "assetName":      "42554e4e59",
  "ticker":         "BUNNY",
  "name":           "Dust Bunny",
  "imageUri":       "/uploads/....webp",
  "creatorAddress": "addr1q...",
  "launchedAt":     "2026-10-23T22:50:03.984Z",
  "priceAda":       0.000013830961,    // ADA per token (number)
  "marketCapAda":   13830.961,
  "bondedPct":      64.98,             // 0–100
  "graduated":      false,
  "lastTradeTx":    "4952ce98...",     // newest trade on the pool, or null
  "lastTradeAt":    1795027748000,     // unix milliseconds, or null
  "king":           true               // only on one token: the last one to
                                       //   reach 50% bonded
}

The list is resolved once for all callers and reused for about five seconds, so polling faster gains nothing. A v5 trade still in the mempool already counts as the token's last trade. Returns 502 with {"error":"board unavailable"} when no token could be read.

curl

curl https://lumpfun.com/api/board
GET

/api/curve

Raw on-chain curve state. The lowest-latency way to poll reserves for a trading agent — read from our own node on every call, with no cache in between.

This endpoint serves v1/v2 tokens only. For a v3 token use /api/v3/pool, for a v5 token /api/v5/pool. Called with a v3 or v5 pool address it answers 502, because it cannot decode their datum.

Query params:

namedescription
addressstring. bech32 curve script address (curveAddress from token meta)required
assetstring. concatenation of policyId + assetName (hex)required

Response (200):

{
  "adaReserve":   "1315233065",    // lovelace in the curve UTxO
  "tokenReserve": "695675004"      // tokens still in the curve
}

Errors:

  • 400 — {"error":"address and asset required"}.
  • 404 — {"error":"curve UTxO not found","kind":"utxo_gone"}: nothing is left at that address, as after a v1 graduation.
  • 502 — the chain could not be read (kind: "read_failed"). This is an outage, not a graduated pool.

Side effect:any GET to this endpoint also kicks off a graduation check for that token. If reserves have crossed the threshold and the migration hasn't run yet, the server queues it. Idempotent and safe to poll.

curl

curl "https://lumpfun.com/api/curve?address=addr1wyse2phgrz8y592nm0zjylragxpmkt3z7dh2chtq4e366tsr6l39v&asset=1ece057aff86e00fd8ab4be63aa582c61742d8657ea33dcd26421c6e4c5547"
GET

/api/v3/pool

Live pool state for a v3 token, read from the pool UTxO's own inline datum. This is the authoritative source for a v3 token's reserves, price and phase.

Query params:

namedescription
policyIdstring. token policy IDrequired

Response (200):

{
  "adaReserve":      "2000000",
  "tokenReserve":    "1142607197",
  "mode":            "Bootstrap",   // "Bootstrap" = bonding curve
                                    // "Amm"       = graduated permanent pool
  "bondedBps":       3,             // curve progress, 10000 = ready to graduate
  "creatorFeeBps":   100,
  "platformFeeBps":  0,
  "platformFeeFlat": "2000000",     // flat 2 ADA per trade
  "lpFeeBps":        0,             // fee kept in the pool in the Amm phase;
                                    //   quote with this value
  "ordersSupported": false,         // true = the pool accepts queued orders
                                    //   (order-buy / order-sell)
  "txHash":          "...",         // the pool UTxO being read
  "outputIndex":     0
}

Always take mode from here, never from the registry. Graduation is permissionless — anyone may submit it once the curve is bought out — so it can land between two polls, and the two phases price with different arithmetic. In Bootstrap the reserves carry virtual offsets; in Amm they are the real balances.

Errors:

  • 400 — {"error":"policyId required"}.
  • 404 — {"error":"token not found"}.
  • 409 — the token is not v3: {"error":"not a v3 pool","poolVersion":"v5"}.
  • 502 — the chain backend cannot be read.

curl

curl "https://lumpfun.com/api/v3/pool?policyId=3bbf2356a966509bb25b490ed298e35415b0e3abc1d42b882f2fb1f5"
GET

/api/v5/pool

Live state for a v5 token: the curve while it exists, the Splash pool after graduation, the token's reward vault, and the constants needed to quote. Everything is read from chain. This is the authoritative source for a v5 token.

Query params:

namedescription
policyIdstring. token policy IDrequired

Response (200):

{
  "cohort": {
    "id":                "ada-order",
    "tradePath":         "order",        // "order"  = buy/sell place an order
                                         // "direct" = buy/sell spend the pool
    "settlerFee":        "450000",       // lovelace each order pays the settler;
                                         //   "0" on a direct cohort
    "quoteTicker":       "ADA",
    "quoteDecimals":     6,
    "quoteIsAda":        true,
    "quoteUnit":         "lovelace",
    "totalSupply":       "1000000000",
    "virtualQuote":      "5000000000",   // added to quoteReserve when pricing
    "tokenVirtualStart": "1125337602",   // tokenReserve at launch
    "curveExhausted":    "375112534",    // tokenReserve at which the curve is sold out
    "tokenOffset":       "125337602",    // tokenReserve minus the real tokens in the pool
    "raiseTarget":       "10000000000",
    "platformFeeBps":    100,            // both fees are charged on the quote
    "rewardFeeBps":      100,            //   side of every trade
    "creatorLaunchCap":  "50000000",     // most tokens the creator's launch buy may take
    "splashFeeNum":      "99700",        // Splash pool fee settings,
    "splashTreasuryFee": "50",           //   out of 100000
    "splashRoyaltyFee":  "2000"
  },
  "curve": {                             // null once graduated
    "quoteReserve":  "3821706662",       // lovelace raised
    "tokenReserve":  "637823100",        // the reserve the curve prices with
    "realTokens":    "512485498",        // tokens actually in the pool UTxO
    "platformOwed":  "0",                // fees waiting in the pool
    "rewardOwed":    "0",
    "progressBps":   6498,               // 10000 = sold out
    "open":          true,               // false = sold out, ready to graduate
    "priceScaled":   "13830961",         // lovelace per token, scaled by 1e6
    "txHash":        "4952ce98...",      // the pool UTxO being read
    "outputIndex":   0,
    "pending":       false               // true = includes a trade still in the mempool
  },
  "splash": null,                        // after graduation:
                                         // { txHash, outputIndex, nftUnit,
                                         //   x, y,          quote and tokens in the pool UTxO
                                         //   rx, ry,        the tradable reserves
                                         //   royaltyX, royaltyY, treasuryX, treasuryY, nonce }
  "vault": {
    "txHash":          "4952ce98...",
    "outputIndex":     2,
    "creatorAddress":  "addr1q...",
    "creatorShareBps": 0,
    "rewardUnit":      "737977...4c756d70",  // null = holders are paid in ADA
    "creatorOwed":     "0",              // lovelace the creator can claim now
    "holderQuote":     "20797789",       // lovelace held for holders
    "holderTok":       "120589"          // reward tokens held for holders
  },
  "settlement": null,                    // after graduation, the royalty books:
                                         // { collectedQuote, collectedTok, soldQuote,
                                         //   depositedQuote, dueQuote, withdrawals,
                                         //   lastDeposit: { tx, at, quote } | null }
  "holders": {                           // null when everything goes to the creator
    "earned":       "133824880",         // all-time holder share, lovelace
    "paidIn":       "LUMP",              // reward token ticker; null = paid in ADA
    "nextPayoutAt": 1795055400000,       // unix milliseconds
    "adaUsd":       0.1507               // number, or null
  }
}

Quoting a v5 trade:

// buy — amount is the lovelace that reaches the curve
tokensOut = floor(amount * tokenReserve / (quoteReserve + virtualQuote + amount))
fees      = floor(amount * platformFeeBps / 10000) + floor(amount * rewardFeeBps / 10000)
youPay    = amount + fees

// sell — amount is token units
gross     = min(quoteReserve,
                floor(amount * (quoteReserve + virtualQuote) / (tokenReserve + amount)))
youGet    = gross - floor(gross * platformFeeBps / 10000) - floor(gross * rewardFeeBps / 10000)

A buy never crosses the end of the curve: one that would take tokenReserve below curveExhausted is cut down to the amount that lands on it exactly. On an order cohort each order also pays settlerFee. Once curve is null the token trades on Splash, and /api/tx/build no longer builds its trades.

Answers are cached for five seconds per token. A new trade on the token clears that cache at once.

Errors:

  • 400 — {"error":"policyId required"}.
  • 404 — {"error":"token not found"}.
  • 409 — the token is not v5: {"error":"not a v5 pool","poolVersion":"v3"}.
  • 502 — the chain backend cannot be read.

curl

curl "https://lumpfun.com/api/v5/pool?policyId=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba293"
GET

/api/quote

Pre-trade quote computed against live reserves with the on-chain curve math. Same numbers the validator will check at submit time — use this so your agent and the chain agree.

Query params:

namedescription
policyIdstring. token policy ID (from registry)required
sidestring. "buy" or "sell"required
amountbigint string. Buy: lovelace in. Sell: tokens in.required
slippageBpsnumber, 0–500. Default 50 (0.5%).optional

Response (200):

{
  "side":             "buy" | "sell",
  "policyId":         "...",
  "assetUnit":        "<policyId><assetName>",
  "amountIn":         "5000000",
  "expectedOut":      "805136",        // tokens (buy) or lovelace gross (sell)
  "minOut":           "801111",        // buy:  expectedOut after slippage
                                       // sell: adaNetLovelace after slippage
  "creatorFeeBps":    100,
  "creatorFeeLovelace":  "50000",      // bps × ada_in (buy) or × ada_gross (sell)
  "platformFeeLovelace": "1000000",    // flat, per trade — see note below
  "adaNetLovelace":   "...",           // sell only — gross − creator − platform
  "reserves":  { "adaReserve": "...", "tokenReserve": "..." },
  "graduated": false,                  // true = a v2 pool in its AMM phase
  "slippageBps": 50
}

This endpoint serves v1/v2 tokens only. For a v3 or v5 token it returns 409 with kind: "wrong_cohort": those generations use different curve constants, so quoting them with these formulas would produce numbers the validator rejects. Read /api/v3/pool or /api/v5/pool and quote from its reserves instead. The flat platform fee is 1 ADA on v1 and 2 ADA on v2; the creator fee is creatorFeeBps of the ADA leg on both, paid on top of a buy and deducted from a sell.

A 409 with {"error":"curve unreachable or graduated"} means a legacy curve is gone. v1 graduation drained the curve to a Minswap pool; a v2 pool flips in place and keeps quoting here.

Other errors:

  • 400 — a missing or invalid parameter, for example {"error":"amount must be a bigint string"}.
  • 404 — {"error":"token not found"}.

curl (buy 5 ADA)

curl "https://lumpfun.com/api/quote?policyId=1ece057aff86e00fd8ab4be63aa582c61742d8657ea33dcd26421c6e&side=buy&amount=5000000"

curl (sell 1M tokens)

curl "https://lumpfun.com/api/quote?policyId=1ece057aff86e00fd8ab4be63aa582c61742d8657ea33dcd26421c6e&side=sell&amount=1000000"
GET

/api/holders

Top 20 holders of an asset, largest first, read from our own node's chain index. Quantities are summed per address. Includes the pool and any vesting script addresses — filter client-side if you only want wallets.

Query params:

namedescription
assetstring. concatenation of policyId + assetName (hex)required

Response (200) — array of:

{
  "address":  "addr1q...",
  "quantity": "996679946"   // bigint string
}

A missing asset returns 400 with an empty array as its body. Returns 502 with {"error":"chain backend unavailable"} when the index cannot be read.

curl

curl "https://lumpfun.com/api/holders?asset=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba29342554e4e59"
GET

/api/trades

Recent trades on a pool, derived from on-chain tx deltas. Sorted newest first, capped at 25 entries. Each row reports the actual buyer/seller (the wallet that signed the tx, identified via inputs — not the treasury or creator-fee output addresses). For a trade made through an order it is the wallet that placed the order. Works for every pool generation.

Query params:

namedescription
addressstring. bech32 pool script address (curveAddress from token meta)required
assetstring. concatenation of policyId + assetNamerequired

Response (200) — array of:

{
  "txHash":     "9a1b2c...",
  "type":       "buy" | "sell",
  "adaDelta":   "10200000",        // |Δ pool lovelace| (a v5 buy includes its fees)
  "adaAmount":  "10000000",        // ADA without fees: buy = into the curve, sell = received
  "tokenDelta": "32156789",        // |Δ token_reserve| in token units
  "trader":     "addr1q...",       // "unknown" when it cannot be resolved
  "blockTime":  1777991234         // unix seconds
}

The list is built from the pool's 60 most recent states. A creator's buy made inside the launch transaction (v3 and v5) is listed too, when that window reaches back to the launch. An empty array means the pool has no trades yet.

A missing parameter returns 400 with an empty array as its body. Returns 502 with {"error":"chain backend unavailable"} when the history cannot be read.

curl

curl "https://lumpfun.com/api/trades?address=addr1wyj2cxrm7pkfz0sx6j6lgueg8035yrs4ry9xupcvcxlrg6cywmqny&asset=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba29342554e4e59"
GET

/api/price-history

OHLC bars for chart rendering. Server buckets trades into the requested timeframe. Same query params as /api/trades plus the bucket size. Works for every pool generation.

Query params:

namedescription
addressstring. bech32 pool script address (curveAddress from token meta)required
assetstring. concatenation of policyId + assetNamerequired
timeframestring. "5m" | "15m" | "1h" | "all". Default "15m"; an unknown value is treated as "15m".optional

A timeframe is a bucket size and a lookback window: 5m covers the last 12 hours, 15m the last 3 days, 1h the last 30 days. all covers the whole history and picks its own bucket (5 minutes up to 7 days) to stay near 240 bars. One request reads at most the 3000 most recent pool states.

Response (200) — array of bars, oldest first:

{
  "t":         "10/23 17:00",       // formatted display label, server local time
  "timestamp": 1792792800,          // unix seconds (bucket start)
  "open":      0.000004487653,
  "high":      0.000004668043,
  "low":       0.000004487653,
  "close":     0.000004668043,
  "volume":    127,                 // ADA traded in the bucket (number)
  "synthetic": true                 // only on filler bars, see below
}

Prices are floating-point ADA-per-token, derived from the pool datum at each tx (not lovelace). For the precise on-chain price use /api/curve → spotPrice from curve-math on a v1/v2 token, and /api/v3/pool or /api/v5/pool on the others.

Buckets with no trade are filled in: a flat bar at the previous close with volume 0 and synthetic: true. The last bar is always the current bucket. Use timestamp, not t, for time: the label is in the server's time zone. At most 1000 bars are returned. An empty array means the pool has no states yet.

A missing parameter returns 400 with an empty array as its body. Returns 502 with {"error":"chain backend unavailable"} when the history cannot be read.

curl

curl "https://lumpfun.com/api/price-history?address=addr1wyj2cxrm7pkfz0sx6j6lgueg8035yrs4ry9xupcvcxlrg6cywmqny&asset=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba29342554e4e59&timeframe=1h"
GET

/api/v5/early-buys

How much of a v5 token's supply was bought in the first ten minutes after launch, and by how many wallets. The creator's buy inside the launch transaction counts.

Query params:

namedescription
policyIdstring. token policy ID, 56 lowercase hex charactersrequired

Response (200):

{
  "windowMinutes": 10,
  "pctSupply":     2.74,    // percent of total supply bought in the window
  "wallets":       2,       // distinct payment keys that bought
  "topPct":        2.18     // percent of supply taken by the largest buyer
}

The body is null when the pool has no history yet. Answers are cached for ten minutes per token.

Errors:

  • 400 — {"error":"policyId required"} (missing, or not 56 lowercase hex characters).
  • 404 — {"error":"not a v5 token"}.
  • 502 — {"error":"early-buys read failed"}.

curl

curl "https://lumpfun.com/api/v5/early-buys?policyId=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba293"
GET

/api/wallet-assets

Non-ADA assets held by a Cardano address, with LumpFun registry metadata joined on for any asset that was launched via this protocol.

Query params:

namedescription
addressstring. bech32 (mainnet addr1...)required

Response (200):

{
  "assets": [
    {
      "unit":     "a1b085f4...42554e4e59",
      "quantity": "20501581",            // raw on-chain integer
      "meta": {                          // present on every asset
        "ticker":   "BUNNY",
        "name":     "Dust Bunny",
        "imageUri": "/uploads/....webp", // may be site-relative
        "href":     "/token/a1b085f4...?asset=42554e4e59",
                                         // the token's page on this site, or null
        "external": null,                // a LumpTools page for a DEX-only token, or null
        "venue":    "lumpfun",           // "lumpfun" | "snek" | "dgens" | "solada"
                                         //   | "dex" | null (unknown token)
        "decimals": 0                    // divide quantity by 10^decimals to display
      },
      "registry": {                      // present only for LumpFun-launched tokens
        "policyId":  "a1b085f4...",
        "assetName": "42554e4e59",
        "ticker":    "BUNNY",
        "name":      "Dust Bunny",
        "imageUri":  "/uploads/....webp"
      }
    }
  ]
}

Returns {"assets": []} (status 200) for an address with no assets. Balances are read from our own node's chain index. LumpFun tokens come first, then tokens a list knows, then unknown ones; within each group the largest quantity comes first. Returns 400 with {"error":"address required"} when address is missing.

curl

curl "https://lumpfun.com/api/wallet-assets?address=ADDRESS"
GET

/api/v5/rewards

What a wallet has earned on v5 tokens: the creator share of tokens it launched, and its holder rewards. Holder rewards are paid out by the protocol in a daily run, and an amount too small to send is carried forward; this endpoint reports them, it does not claim them.

Query params:

namedescription
addressstring. bech32 wallet addressrequired

Response (200):

{
  "address":    "addr1q...",
  "credential": "eee50962...",         // the address's stake key hash
                                       //   (payment key hash if it has none)
  "rewards": [                         // one entry per v5 token with something to show
    {
      "policyId": "a1b085f4...",
      "ticker":   "BUNNY",
      "unit":     "a1b085f4...42554e4e59",
      "creator": {                     // null unless this wallet created the token
        "owed":          "0",          // claimable now with creator-claim-v5
        "shareBps":      0,
        "quoteTicker":   "ADA",
        "quoteDecimals": 6
      },
      "holder": {                      // null when the wallet has no payout lines
        "accrued":    "0",             // lovelace allocated so far
        "paid":       "0",             // lovelace already paid out
        "pending":    "0",             // accrued − paid
        "accruedTok": "20140",         // the same two, in reward-token units
        "paidTok":    "16845",
        "lastWindow": "2026-11-17"     // last day allocated, or null
      },
      "earning": {                     // estimate for the day still open; null if none
        "quote":        "989702",      // estimated share of the undistributed lovelace
        "tok":          "0",           // estimated share of the undistributed reward tokens
        "sharePpm":     47586,         // share of the day's rewards, parts per million
        "windowDay":    "2026-11-18",  // UTC day the estimate covers
        "windowClosed": false,
        "eligible":     true,
        "balance":      "20501581"     // tokens the wallet holds now
      },
      "rewardToken": { "unit": "737977...4c756d70", "ticker": "LUMP", "decimals": 0 },
                                       // null = rewards are paid in ADA
      "rewardUnit":  "737977...4c756d70"
    }
  ]
}

earning is an estimate: the share moves as balances move until the day closes at 24:00 UTC. Returns 400 with {"error":"address required"} for a missing or invalid address.

curl

curl "https://lumpfun.com/api/v5/rewards?address=ADDRESS"
GET

/api/v5/orders

Open orders on a v5 order-cohort token: placed, not yet filled and not cancelled. With address, only that wallet's orders. The server tries to fill an order as soon as it is submitted, so this list is often empty.

Query params:

namedescription
policyIdstring. token policy ID, 56 lowercase hex charactersrequired
addressstring. bech32 wallet address; limits the list to its ordersoptional

Response (200):

{
  "tradePath": "order",             // "direct" = the token takes no orders; orders is []
  "orders": [
    {
      "ref":         "<txHash>#<index>",  // pass as orderRef to order-cancel
      "txHash":      "...",
      "outputIndex": 0,
      "side":        "buy" | "sell",
      "amountIn":    "10000000",    // buy: lovelace for the curve. sell: token units
      "minOut":      "...",         // least the order accepts
      "settlerFee":  "450000",      // lovelace the order pays the settler
      "assets":      { "lovelace": "..." },  // everything the order UTxO holds
      "note":        null           // why it has not been filled, when known
    }
  ]
}

Errors:

  • 400 — {"error":"policyId required"} or {"error":"bad address"}.
  • 404 — {"error":"not a v5 token"}.
  • 502 — the order address cannot be read.

curl

curl "https://lumpfun.com/api/v5/orders?policyId=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba293"
GET

/api/v3/orders

The queue of orders waiting on a v3 token. Everything here is already public on chain.

Query params:

namedescription
policyIdstring. token policy IDrequired
addressstring. bech32 wallet address; only sets the mine flagoptional

Response (200):

{
  "orders": [
    {
      "txHash":      "...",          // the order UTxO; pass both as ref
      "outputIndex": 0,              //   to order-cancel
      "side":        "Buy" | "Sell",
      "amount":      "10000000",     // Buy: lovelace in. Sell: token units in
      "minOut":      "...",
      "mine":        false           // true when the order belongs to address
    }
  ]
}

Errors:

  • 400 — {"error":"policyId required"}.
  • 404 — {"error":"token not found"}.
  • 502 — {"error":"order book read failed"}. An order that exists is never reported as an empty list.

curl

curl "https://lumpfun.com/api/v3/orders?policyId=3bbf2356a966509bb25b490ed298e35415b0e3abc1d42b882f2fb1f5"
GET

/api/token-fees

Creator-fee accounting for one token. The on-chain fee accumulator is shared by every token of the same creator, so this endpoint reports two things: an estimate for this token alone, and the accumulator's own totals.

Query params:

namedescription
policyIdstring. token policy IDrequired

Response (200):

{
  "policyId":      "...",
  "ticker":        "TICK",
  "lifetime":      "42631363",   // lovelace: creatorFeeBps of each trade's ADA,
                                 //   summed over the trades counted
  "tradesCounted": 22,
  "truncated":     false,        // true = only the 200 most recent pool states were read
  "pool": {                      // the creator's accumulator, across all their tokens;
    "lifetime":  "51464683",     //   null when the token has none (every v5 token)
    "claimed":   "45846119",
    "unclaimed": "5618564"
  }
}

Returns 400 without policyId and 404 with {"error":"token not found"}for an unknown one. A v5 token's rewards live in its vault; read them from /api/v5/pool.

curl

curl "https://lumpfun.com/api/token-fees?policyId=POLICY"
GET

/api/fee-accumulator

Lifetime accounting for one creator-fee accumulator address (feeAccumulatorAddress in token meta).

Query params:

namedescription
addressstring. bech32 fee accumulator script addressrequired

Response (200):

{
  "unclaimed": "5618564",    // lovelace sitting at the address now
  "claimed":   "45846119",   // lovelace the creator has swept out
  "lifetime":  "51464683"    // total ever paid in (unclaimed + claimed)
}

Returns 400 with {"error":"address required"}, and 502 with {"error":"chain backend unavailable"} when the lookup fails. A failed lookup is never reported as zeros.

curl

curl "https://lumpfun.com/api/fee-accumulator?address=FEE_ACCUMULATOR_ADDRESS"
GET

/api/top-earners

The ten creators who have earned the most creator fees, largest first. Counts tokens that have a feeAccumulatorAddress; each accumulator is counted once. No parameters.

Response (200):

{
  "earners": [
    {
      "creatorAddress": "addr1q...",
      "tokens":    [ { "policyId": "...", "ticker": "TICK" } ],
      "lifetime":  "51464683",   // lovelace: claimed + unclaimed
      "claimed":   "45846119",
      "unclaimed": "5618564"
    }
  ],
  "total":    "187711034",       // lovelace: lifetime fees of all creators read
  "resolved": 10,                // accumulators read
  "failed":   0                  // accumulators that could not be read
}

curl

curl https://lumpfun.com/api/top-earners
GET

/api/top-traders

Wallets ranked by ADA earned trading LumpFun tokens. Built from the same trade list as /api/trades, over every listed ADA-quoted token. One row per payment key.

Query params:

namedescription
rangestring. "24h" ranks the last 24 hours. Anything else, or nothing, ranks all time.optional
addressstring. bech32 wallet address; adds that wallet's own row as meoptional

Response (200):

{
  "traders": [                   // at most 100, best first
    {
      "address": "addr1q...",    // the wallet's most-used address
      "handle":  "@name",        // only when the wallet holds a name
      "earned":  "189738089",    // realized profit, signed lovelace
      "pnl":     "189738089",    // realized + unrealized, signed lovelace
                                 //   (on the 24h board: the same as earned)
      "pnlPct":  99.2,           // percent (number), or null
      "volume":  "380988087",    // lovelace bought + sold
      "trades":  1,
      "coins":   1               // tokens traded
    }
  ],
  "total":   2,                  // wallets ranked
  "adaUsd":  0.1507,             // number, or null
  "asOf":    1795040751169,      // unix milliseconds
  "partial": false,              // true = some token's history could not be read
  "me":      null                // with address: that wallet's row plus "rank",
                                 //   or null if it has not traded
}

The board is computed at most once a minute; a stale one is served while the next is computed. Returns 502 with {"error":"chain backend unavailable"} when no history can be read.

curl

curl "https://lumpfun.com/api/top-traders?range=24h"
POST

/api/tx/build

Builds an unsigned transaction against our own Cardano node and returns its CBOR. Your wallet signs it; the server cannot. It holds no key for your address and operates a read-only wallet, so the only thing this endpoint can hand you is a transaction you must sign yourself.

Contract parameters are deliberately not taken from the request. Pool address, validator script, fee rate and fee routing are read from the registry, which is re-derived and verified at registration time. You supply only who is paying and how much.

Body (JSON):

namedescription
actionstring. One of the actions below.required
addressstring. bech32 — whose UTxOs fund the tx and where change goesrequired
policyIdstring. token being acted on (all actions except the launch actions)conditional
amountbigint string — lovelace for buys, token units for sellsconditional
slippageBpsnumber. integer 0..5000 (default 100)optional
orderRefstring. "txHash#index" of the order to cancel (order-cancel on a v5 token)conditional
refobject. { txHash, outputIndex } of the order to cancel (order-cancel on a v3 token)conditional
unlockMsnumber. POSIX milliseconds, in the future (revest)conditional
vestingAddressstring. which lock to claim (claim-vesting); needed when the token has more than oneconditional
launchobject. the new token (launch-v5), see belowconditional

Actions:

namedescription
buyBuy tokens. amount is the lovelace that goes into the pool; fees are added on top. On a v5 order cohort this places a buy order.all
sellSell tokens. amount is token units. On a v5 order cohort this places a sell order.all
order-buy, order-sellQueue a trade on a v3 pool instead of spending it directly. amount and slippageBps as for buy and sell. The pool must report ordersSupported: true, otherwise 409.v3
order-cancelTake back an open order. Only the wallet that placed it can; anyone else gets 403. Name the order with orderRef (v5) or ref (v3).v3, v5
graduateGraduate a sold-out curve. Anyone may submit it. No amount.v3, v5
claimMove the fees a v5 pool has collected: the platform share to the treasury, the reward share into the token's vault. Anyone may submit it. No amount.v5
creator-claim-v5Pay the creator what the vault owes them. address must be the creator, otherwise 403. amount is optional; the default is everything owed.v5
claim-feesSweep the creator fees waiting at the token's fee accumulator to the creator. address must be the creator. No amount.v1–v3
revestLock tokens until unlockMs. amount is token units. Any holder can lock.all
claim-vestingTake an unlocked lock back. Only the wallet that locked it can; anyone else gets 403.all
launch-v5Launch a new v5 token. Takes launch instead of policyId.—
launch, launch-v3Launch actions of the v2 and v3 generations. The site launches with launch-v5; these two are not described here.—

Response (200):

Every response carries cbor, the unsigned transaction to sign. The other fields depend on the action and the pool generation:

// buy
v1/v2  { cbor, tokensOut }
v3     { cbor, tokensOut, mode }
v5     { cbor, tokensOut, quoteIn, quoteSpent, capped,
         newQuoteReserve, newTokenReserve, progressBps, priceScaled, pending }

// sell
v1/v2  { cbor, adaNet }
v3     { cbor, adaNet, mode }
v5     { cbor, quoteNet, gross,
         newQuoteReserve, newTokenReserve, progressBps, priceScaled, pending }

// buy or sell on a v5 order cohort: the fields above, plus
       { order: true, settlerFee, minOut }

// the rest
order-buy, order-sell   { cbor, minOut, mode }
order-cancel            v5 { cbor, orderRef, returned }      v3 { cbor }
graduate                v5 { cbor, splashNftUnit, splashAddress }
                        v3 { cbor, bountyLovelace }
claim                   { cbor, treasuryPaid, deposited }
creator-claim-v5        { cbor, amount, remaining }
claim-fees              { cbor, lovelace, remaining }
claim-vesting           { cbor, tokens, lovelace }
revest                  { cbor, address, validatorCbor, unlockMs, amount }
  • tokensOut — tokens the buy returns at the pool state the transaction was built on. On an order cohort it is the projected fill.
  • adaNet, quoteNet — lovelace the seller receives after fees. gross is the amount before fees.
  • quoteIn — lovelace that reaches the curve. capped: true means the request was cut down to what the curve had left. quoteSpent is quoteIn plus both fees.
  • newQuoteReserve, newTokenReserve, progressBps, priceScaled — the pool after this trade. pending: true means the build started from a pool state that is not in a block yet.
  • mode — the v3 pool phase the transaction was built for.
  • minOut — the least the order accepts; settlerFee — lovelace the order pays the settler.
  • returned — what the cancelled order gives back, as { unit: quantity }.
  • bountyLovelace — lovelace paid to whoever submits a v3 graduation.
  • treasuryPaid, deposited — lovelace sent to the treasury and into the vault.
  • remaining — after creator-claim-v5: lovelace still owed. After claim-fees: the number of fee UTxOs left for another claim.
  • revest returns the lock's script address. Once the transaction is in a block, record the lock with /api/tokens/vesting-add.

The launch object (launch-v5):

namedescription
cohortIdstring. the cohort to launch on. The site launches on "ada-order".required
namestring. token name. The registry keeps the first 64 characters.required
tickerstring. becomes the on-chain asset name. Keep it to 16 characters; a longer one cannot be listed.required
creatorShareBpsnumber. 10000, 5000 or 0: the creator's share of the reward fee. The rest goes to holders. Default 5000.optional
initialBuyQuotebigint string. a creator buy inside the launch, in lovelace reaching the curve; fees on top. It may take at most creatorLaunchCap tokens.optional
rewardPolicy, rewardNamestrings, hex. pay holders in this token instead of ADA. Take a pair from /api/v5/reward-assets: its unit is rewardPolicy + rewardName.optional
refPoolPolicy, refPoolNamestrings, hex. that pair's refPoolNft, split the same way. Send them together with the reward token.optional
imageUristring. token image: a url from /api/upload, or an https:// or ipfs:// URLoptional
description, website, twitter, telegram, discordstrings. written into the token's on-chain metadataoptional

The launch-v5 response carries, besides cbor: policyId, assetName, curveAddress, vaultAddress, validatorCbor, poolVersion, v5CohortId, seedTxHash, seedOutputIndex, creatorAddress, creatorShareBps, the four reward fields, tokensOut and quoteSpent for the creator buy, launchCostLovelace (lovelace the launch locks in the pool and the vault), and a registrationToken. Sign and submit through /api/tx/submit and the server lists the token as soon as the transaction is in a block. Keep the response: POST /api/tokens takes the same values if you need to list it yourself.

Flow:

const built   = await post('/api/tx/build',  { action: 'buy', policyId, address, amount });
const witness = await walletApi.signTx(built.cbor, true);   // partial sign
const { txHash } = await post('/api/tx/submit', { cbor: built.cbor, witness, address });

Returns 409 for actionable conditions — chain index behind tip, no UTxOs at the address, sell too large for the pool to honour, pool UTxO missing, not enough funds in the wallet, a v5 curve that is sold out, an order that is already filled or cancelled.

Other errors:

  • 400— a missing or invalid field, or an action the token's generation does not support, for example {"error":"action \"claim-fees\" is not supported for v5 pools"}.
  • 403 — the address is not the owner of the order or lock, or not the creator.
  • 404 — {"error":"token not found"}.
  • 503 — a launch action while launches are paused.
  • 500 — an unexpected build failure.

curl (buy 10 ADA)

curl -X POST https://lumpfun.com/api/tx/build \
  -H "content-type: application/json" \
  -d '{"action":"buy","address":"ADDRESS","policyId":"POLICY","amount":"10000000","slippageBps":100}'

curl (cancel a v5 order)

curl -X POST https://lumpfun.com/api/tx/build \
  -H "content-type: application/json" \
  -d '{"action":"order-cancel","address":"ADDRESS","policyId":"POLICY","orderRef":"TXHASH#0"}'
POST

/api/tx/submit

Attaches a CIP-30 witness set to a transaction this server built and submits it. The transaction is re-hydrated from the exact bytes you signed, so the signature cannot be invalidated by a rebuild.

Body (JSON):

namedescription
cborstring, hex. the unsigned tx returned by /api/tx/buildrequired
witnessstring, hex. witness set from walletApi.signTx(cbor, true)required
addressstring. bech32 address of the signer. It is not used to sign or to pick inputs.required

Response (200):

{ "txHash": "288ab0f22c5bacfa58f76b8a1c7bc1081d3af732624adb0b471624b7d0f2a926" }

When the transaction placed an order on a v5 order cohort, the server tries to fill it before it answers and adds the outcome:

{
  "txHash": "...",              // the transaction that placed the order
  "fill": {                     // null when the order was not filled yet
    "txHash":    "...",         // the fill transaction — track this one
    "tokensOut": "1662787",     // tokens a buy received
    "net":       "..."          // lovelace a sell received
  },
  "fillError": null             // why it was not filled, when fill is null
}

An order that was not filled stays yours. It is retried on its own, it shows in /api/v5/orders, and you can take it back with order-cancel. The server waits up to 12 seconds for the fill before it answers.

An invalid or missing signature is rejected by the ledger. The server cannot substitute one.

Errors:

  • 400 — {"error":"cbor and witness are required"}, {"error":"cbor and witness must be hex"} or {"error":"a valid signer address is required"}.
  • 409 — the wallet returned an empty witness set. Nothing was submitted; wait a few seconds for the wallet to refresh, then build and sign again.
  • 500 — the node rejected the transaction. error carries its reason.

A 429 here costs a signature, so this endpoint has its own, larger rate limit.

curl

curl -X POST https://lumpfun.com/api/tx/submit \
  -H "content-type: application/json" \
  -d '{"cbor":"84a300d90102...","witness":"a100d90102...","address":"ADDRESS"}'
GET

/api/tx-status

Whether a transaction is in a block yet. Poll it after a submit: Cardano drops a mempool transaction when another one spends the same input first, and nothing tells you. The site polls every few seconds and gives up after three minutes.

Query params:

namedescription
hashstring. transaction hash, 64 hex charactersrequired

Response (200):

{ "confirmed": true,  "via": "kupo" }                         // in a block
{ "confirmed": false, "inMempool": true,  "via": "mempool" }  // waiting in our node's mempool
{ "confirmed": false, "inMempool": false, "via": "dbsync" }   // not in a block, not in the mempool

via names the index that answered. An answer with via: "dbsync" can also be confirmed: true. Returns 400 with {"error":"invalid hash"}, and 503when the lookup itself fails — that is not the same as "not confirmed".

Following an order:

The same endpoint reports what became of an order. Send these four parameters instead of hash:

namedescription
spentstring. the order output, "txHash#index" (the ref from /api/v5/orders). Encode the # as %23.required
addressstring. bech32 mainnet address of the wallet that placed itrequired
unitstring. the token, policyId + assetName (hex)required
sidestring. "buy" or "sell"required
// not in a block yet
{ "confirmed": false, "inMempool": true, "spent": false, "filled": null }

// in a block, still open
{ "confirmed": true, "spent": false, "filled": null }

// spent
{
  "confirmed": true,
  "spent":     true,
  "filled":    true,              // true = filled, false = refunded,
                                  //   null = cannot tell
  "spender":   "4952ce98...",     // the transaction that spent the order
  "received":  {                  // what that transaction paid the address, or null
    "unit":     "1662787",        // quantity of the token
    "lovelace": "..."             // lovelace
  }
}

// the index did not answer in time: ask again
{ "confirmed": false, "busy": true, "spent": false, "filled": null }

filled is read from what the spending transaction paid the address. A buy counts as filled when it paid the token; a sell when it paid ADA without the token. Returns 400 with {"error":"bad order reference"} when the reference, the address, the unit or the side is malformed.

curl

curl "https://lumpfun.com/api/tx-status?hash=TXHASH"

curl (an order)

curl "https://lumpfun.com/api/tx-status?spent=TXHASH%230&address=ADDRESS&unit=a1b085f414fb7799d378e90e39d24c9e54c841a311d72b2f57cba29342554e4e59&side=buy"
GET

/api/v5/reward-assets

The tokens a v5 launch may pay its holders in, each with the reference pool to name. Use one entry to fill the reward fields of launch-v5. The launch build checks the chosen pair again on chain.

Query params:

namedescription
cohortstring. cohort ID. Default: the cohort open for launches.optional

Response (200):

{
  "cohort":      "ada-order",
  "quoteTicker": "ADA",
  "minDepthAda": 5000,           // least ADA a reference pool must hold
  "assets": [
    {
      "ticker":     "LUMP",
      "name":       null,
      "unit":       "737977...4c756d70",  // policy + name: rewardPolicy + rewardName
      "refPoolNft": "d8eb52...2b44",      // policy + name: refPoolPolicy + refPoolName
      "venue":      "Splash royalty pool",
      "depthAda":   30423.480131,         // ADA in the reference pool (number)
      "logoUrl":    null,
      "preset":     true,                 // always offered
      "classic":    false                 // true = a graduated v5 token
    }
  ]
}

A policy ID is the first 56 hex characters of unit or refPoolNft; the name is the rest. The response may be cached for two minutes (it sends cache-control: public, max-age=120). Returns 400 with {"error":"unknown cohort"}, and 502 with {"error":"reward asset list unavailable"}.

curl

curl https://lumpfun.com/api/v5/reward-assets
POST

/api/upload

Upload a token image before a launch. Not needed if the image is already at an https:// or ipfs:// URL.

Body (JSON):

namedescription
dataUrlstring. the image as a data: URL with base64 contentrequired
creatorAddressstring. bech32 address of the wallet that will launchoptional

Response (200):

{ "url": "/uploads/4a74c706e217f159d8602883.jpg" }   // pass as imageUri

Accepts PNG, JPEG, GIF and WebP up to 4 MB. The type is read from the file's own bytes, not from the data URL; SVG is refused.

Errors:

  • 400 — {"error":"Invalid payload"}, {"error":"Empty data"}, {"error":"File too large (max 4 MB)"} or {"error":"Not a supported image (PNG, JPEG, GIF or WebP)"}.
  • 503 — launches are paused.
  • 507 — upload storage is full.

Limited to 5 requests a minute per IP.

curl

curl -X POST https://lumpfun.com/api/upload \
  -H "content-type: application/json" \
  -d '{"dataUrl":"data:image/png;base64,iVBORw0KGgo...","creatorAddress":"ADDRESS"}'
POST

/api/tokens

List a launched token in the registry. A launch-v5 submitted through /api/tx/submit is listed by the server itself; this call is the fallback, and it is safe to send anyway — a token that is already listed answers {"ok":true} and changes nothing.

Nothing in the body is taken on trust. The server derives the policy ID again from the seed, compares the pool and vault addresses and the script with its own, and checks the pool and the vault on chain. Wait until the launch transaction is in a block before you call it.

Body (JSON), for a v5 token:

namedescription
policyId, assetName, curveAddress, vaultAddress, validatorCbor, v5CohortId, seedTxHash, seedOutputIndexas returned by the launch-v5 buildrequired
poolVersionstring. "v5"required
registrationTokenstring. as returned by the launch-v5 build. It ties the listing to the wallet that launched.required
creatorAddressstring. the address the launch was built forrequired
ticker, namestrings. as launched. ticker must match the on-chain asset name.required
creatorShareBps, rewardPolicy, rewardName, refPoolPolicy, refPoolNameas returned by the launch-v5 build. They must match the vault on chain.required
creatorFeeBpsnumber. the cohort's rewardFeeBps from /api/v5/pool (100)optional
imageUristring. a /uploads/ path from /api/upload, or an https:// or ipfs:// URL. Anything else is dropped.optional
description, website, twitter, telegram, discordstrings. description is cut at 600 characters, links at 300.optional

Response (200):

{ "ok": true }

Fields the server does not know are dropped. v2 and v3 tokens can be listed the same way, with their own fields, but only before their first trade.

Errors:

  • 400 — {"error":"invalid JSON body"}, or {"error":"rejected: <reason>"} when a check fails. The reason says which one.
  • 503 — launches are paused.
  • 500 — the registry could not be written.

curl

curl -X POST https://lumpfun.com/api/tokens \
  -H "content-type: application/json" \
  -d '{"poolVersion":"v5","policyId":"...","assetName":"...","ticker":"TICK","name":"My Token","curveAddress":"addr1w...","vaultAddress":"addr1w...","validatorCbor":"59...","v5CohortId":"ada-order","seedTxHash":"...","seedOutputIndex":0,"creatorAddress":"ADDRESS","creatorShareBps":5000,"rewardPolicy":"","rewardName":"","refPoolPolicy":"","refPoolName":"","registrationToken":"..."}'
POST

/api/tokens/vesting-add

Record a token lock in the registry, after the revest transaction is in a block. A lock that is not recorded does not show on the token page and cannot be claimed through claim-vesting. The server derives the lock's script address itself from the two values you send, and records the lock only if that address holds the token on chain.

Body (JSON):

namedescription
policyIdstring. token policy IDrequired
lockerAddressstring. bech32 address of the wallet that lockedrequired
unlockMsnumber. the unlockMs the revest build returnedrequired

Response (200):

{ "ok": true, "address": "addr1w...", "locked": "1000000" }   // locked = token units at the lock
{ "ok": true, "deduped": true, "address": "addr1w..." }        // it was recorded already

Errors:

  • 400 — {"error":"policyId, lockerAddress, unlockMs required"} or {"error":"lockerAddress is not a valid address"}.
  • 404 — {"error":"token not in registry"}.
  • 409 — {"error":"no confirmed lock at the derived vesting address for this token"}. The lock is not in a block yet, or the two values do not match it.
  • 503 — the chain backend is unavailable. Try again.

curl

curl -X POST https://lumpfun.com/api/tokens/vesting-add \
  -H "content-type: application/json" \
  -d '{"policyId":"POLICY","lockerAddress":"ADDRESS","unlockMs":1795388847881}'
POST

/api/tokens/vesting-claimed

Mark a lock as claimed, after the claim-vestingtransaction is in a block. The server records it only if that transaction really spent from the lock's address.

Body (JSON):

namedescription
policyIdstring. token policy IDrequired
txHashstring. the claim transactionrequired
addressstring. the lock script address (address in extraVestings). Leave out for a launch-time lock.conditional

Response (200):

{ "ok": true }

Errors:

  • 400 — {"error":"policyId and txHash required"}.
  • 404 — the token is not in the registry, or it has no lock at that address.
  • 409 — {"error":"tx is not a confirmed claim from that vesting address"}.
  • 503 — the chain backend is unavailable. Try again.

curl

curl -X POST https://lumpfun.com/api/tokens/vesting-claimed \
  -H "content-type: application/json" \
  -d '{"policyId":"POLICY","txHash":"TXHASH","address":"LOCK_ADDRESS"}'
POST

/api/tokens/fees-claimed

Record the latest creator-fee sweep, after the claim-fees transaction is in a block. It sets feeAccumulatorClaimedTxHashon the token, which is for display only. The server records it only if that transaction really spent from the token's fee accumulator.

Body (JSON):

namedescription
policyIdstring. token policy IDrequired
txHashstring. the sweep transactionrequired

Response (200):

{ "ok": true }

Errors:

  • 400 — {"error":"policyId and txHash required"}.
  • 404 — the token is not in the registry, or it has no fee accumulator.
  • 409— the transaction is not a confirmed sweep of this token's fee accumulator.
  • 503 — the chain backend is unavailable. Try again.

curl

curl -X POST https://lumpfun.com/api/tokens/fees-claimed \
  -H "content-type: application/json" \
  -d '{"policyId":"POLICY","txHash":"TXHASH"}'
GET

/api/health

Liveness probe. It checks the three chain services the trade path depends on and says whether trading can work right now. No parameters.

Response (200 when ok, 503 when not — same body):

{
  "ok":      true,
  "network": "Mainnet",
  "backend": "kupo",
  "chain": {
    "kupo":   { "ok": true, "error": null },        // chain index: pool reads
    "ogmios": { "ok": true, "error": null },        // node gateway: build and submit
    "dbsync": { "ok": true, "lagSeconds": 27 }      // history index: wallet UTxOs
  },
  "hints": []                                       // plain-language notes when something is down
}

/api/tx/build refuses to build when lagSeconds is above 180: it would be working from a stale view of the wallet.

curl

curl https://lumpfun.com/api/health

Rate limits

Limits are per IP address, counted in one-minute windows. Routes in the same row share one counter.

namedescription
readsevery path under /api that is not listed below300 / min
writesPOST /api/tx/build, POST /api/tokens, POST /api/tokens/vesting-add, POST /api/tokens/vesting-claimed, POST /api/tokens/fees-claimed40 / min
submitPOST /api/tx/submit90 / min
uploadPOST /api/upload5 / min

Over the limit, the answer is 429 with {"error":"rate limited — slow down"} and a retry-after header: the number of seconds until the window resets.

Errors

Errors are JSON with an error field. Some add kind, reason or hint. Common shapes:

  • 400 — missing/invalid query params (e.g. non-bigint amount). /api/holders, /api/trades and /api/price-history answer a missing parameter with an empty array as the body.
  • 403 — the address is not allowed to do this: not the order's owner, not the wallet that locked, not the creator.
  • 404 — token not in registry, or the pool UTxO is genuinely not on chain.
  • 409 — real token, operation not applicable to its current state: a token on an endpoint for another pool generation, a graduated legacy curve, or an amount the pool cannot fill.
  • 429 — rate limited. Honour retry-after.
  • 500 — internal error.
  • 502 / 503 — a data source we depend on could not be read. The answer is unknown, not empty.

That last distinction is load-bearing and these routes hold to it: a failed read never returns 200 []. An empty array means the chain really is empty; a backend failure is a 502/503 with a reason. Code that treats them alike will eventually report a healthy zero for an outage — retry on 5xx rather than caching the emptiness.

Check the status code before you parse the body. A 502 can reach you as plain text (error code: 502) instead of the JSON described here, because the CDN in front of the API replaces the body.