Developer

Analytics

Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.

lid.analytics.affiliate

affiliate analytics: the commissions you earned

Key permission: none (read)

lid.analytics.affiliate(input?, options?)

SDK
const result = await lid.analytics.affiliate();
Response
{
  "ok": true,
  "perspective": "affiliate",
  "totals": {
    "salesCount": 0,
    "totalCommission": 0,
    "totalVolume": 0,
    "totalClicks": 0,
    "conversionRate": 0,
    "avgCommissionPerSale": 0
  },
  "affiliations": [],
  "byProduct": []
}

lid.analytics.creator

creator analytics: sales, revenue and affiliates (timeframe: 7d, 30d, 90d, 1y, all)

Key permission: none (read)

lid.analytics.creator(input?, options?)

SDK
const result = await lid.analytics.creator();
Response
{
  "ok": true,
  "perspective": "creator",
  "totals": {
    "productsCount": 3,
    "totalSales": 5,
    "affiliateSales": 0,
    "totalCommissionPaid": 0,
    "distinctAffiliates": 0
  },
  "byAffiliate": []
}

lid.analytics.product

sales and revenue for a product

Key permission: none (read)

lid.analytics.product(input, options?)

NameTypeRequiredSource
productPdastringRequiredpath
SDK
const result = await lid.analytics.product({
  productPda: '…',
});
Response
{
  "ok": true,
  "product": {
    "productPda": "7Thx4DKF8ST1MFvpbDDgYJwS2eWgeVyQ5crEpPzsYtnN",
    "productId": "85771b9d-a250-4ab8-9934-bbccd6efba86",
    "name": "Checkout test · 10 cents",
    "image": null,
    "priceUsdc": 0.1,
    "maxSupply": 10000,
    "sold": 3,
    "remaining": 9997,
    "affiliateEnabled": true,
    "affiliateCommissionBps": 1000,
    "status": "confirmed"
  },
  "totals": {
    "salesCount": 3,
    "grossVolume": 0.3,
    "creatorRevenue": 0.291,
    "platformFees": 0.009,
    "affiliateSalesCount": 0,
    "commissionPaid": 0,
    "distinctBuyers": 2,
    "distinctAffiliates": 0
  },
  "byAffiliate": [],
  "timeSeries": [
    {
      "date": "2026-09-25",
      "sales": 3,
      "revenue": 0.291
    }
  ],
  "recent": [
    {
      "buyer": "2xWueDPTL9T7Rt6AN9Cj4GyCaA6dXygKJiiJiMMP13EK",
      "pricePaid": 0.1,
      "royalty": 0.097,
      "affiliate": null,
      "commission": 0,
      "timestamp": "2026-09-25T16:07:32.000Z",
      "signature": "5ozVpeYGXj49A8Aqos4foGZcU96ghxnSqhVh73GxnKxuy9nQfFuDsqc3RrKakE3AoPFAP2EkRTg5wmYf2jMwB97X"
    },
    {
      "buyer": "2xWueDPTL9T7Rt6AN9Cj4GyCaA6dXygKJiiJiMMP13EK",
      "pricePaid": 0.1,
      "royalty": 0.097,
      "affiliate": null,
      "commission": 0,
      "timestamp": "2026-09-25T16:06:29.000Z",
      "signature": "4BArvRXNFJx5dT29ypTFJoshymDHdHNgj7QVJaWi2NM1ss7p289SVNBd8HB3ws4C6Jq8uhUWiCKMDHA2JtCdTqXC"
    },
    {
      "buyer": "5ZpFH5KRBGw9ms5Ud5cUN9bJMdJ5hYB6u1qaV8cBBkxu",
      "pricePaid": 0.1,
      "royalty": 0.097,
      "affiliate": null,
      "commission": 0,
      "timestamp": "2026-09-25T16:03:48.000Z",
      "signature": "67EDiWX5VFuqJeQeFoWPneXUgGjsDYt3PcxrpfgUgd8CYhRm5hyZTa2ZFR5Gt3CSV6D1CjT5sBRkHnVoxgkFTG4r"
    }
  ]
}