Developer

Account

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

lid.me.get

your identity: user, real wallet (where revenue goes) and the custodial agent wallet

Key permission: none (read)

Works with a site key

lid.me.get(input?, options?)

SDK
const result = await lid.me.get();
Response
{
  "ok": true,
  "userId": 3,
  "userPubkey": "5oNHhnyNBgwce11xJeJ7EU4tbvBovu9fiFftwwqEVF8Y",
  "agentPubkey": "14pRP6hCk2cewgm12o8t4xB3ssyaTxTYkN29L9ceUgXJ",
  "label": "agent-key",
  "permissions": [
    "sitio",
    "catalogo"
  ],
  "scopes": [
    "sitio",
    "catalogo"
  ],
  "expiresAt": "2026-12-24T14:54:03.868Z",
  "balance": 0,
  "siteId": null,
  "site": null
}

lid.usage.get

Your key's usage and limits: creation caps (daily/lifetime, without consuming them), global kill-switch and agent-wallet balances

Key permission: none (read)

lid.usage.get(input?, options?)

SDK
const result = await lid.usage.get();
Response
{
  "ok": true,
  "key": {
    "label": "agent-key",
    "prefix": "lpmcp_f3d929",
    "permissions": [
      "sitio",
      "catalogo"
    ],
    "scopes": [
      "sitio",
      "catalogo"
    ],
    "expiresAt": "2026-12-24T14:54:03.868Z",
    "createdAt": "2026-09-25T14:54:03.868Z"
  },
  "creationEnabled": true,
  "creations": {
    "lifetimeUsed": 3,
    "lifetimeLimit": null,
    "lifetimeRemaining": null,
    "todayUsed": 0,
    "dailyLimit": null,
    "dailyRemaining": null,
    "dailyResetInSeconds": null
  },
  "wallet": {
    "agentPubkey": "14pRP6hCk2cewgm12o8t4xB3ssyaTxTYkN29L9ceUgXJ",
    "solLamports": "0",
    "usdcAtomic": "0"
  }
}

lid.credits.get

The account's Builder credits: balance, what each Lida action uses (new site, turn, image, deploy), the packs and where to buy them (only in Lid's web). Each site plan's credits are in sites.get (credits.plan) and are spent first. With credits on, asking Lida and publishing answer 402 credits_insufficient when there aren't enough. perSite is no longer used and is 0. It adds billing (on, unit, paused): with unit usd credits are no longer used (enabled false, zeros and no packs) and AI use is billed in dollars; with unit usd it also brings extra (the account's extra usage in cents, with its top-ups) and topups (the top-up amounts, only on the web). With unit usd, if billing can't be read, it answers 503 service_unavailable: retry in a few minutes.

Key permission: none (read)

lid.credits.get(input?, options?)

SDK
const result = await lid.credits.get();

Hand-written sample (not captured on devnet yet)

Response
{
  "ok": true,
  "enabled": true,
  "balance": {
    "included": 120,
    "purchased": 500,
    "total": 620
  },
  "prices": {
    "newSite": 50,
    "turn": 10,
    "image": 5,
    "deploy": 2
  },
  "packs": [
    {
      "credits": 100,
      "cents": 1000
    },
    {
      "credits": 500,
      "cents": 4500
    },
    {
      "credits": 1000,
      "cents": 8000
    }
  ],
  "perSite": 0,
  "welcome": 100,
  "paymentMethods": [
    "usdc"
  ],
  "buyUrl": "https://devnet.lid.pro/dashboard/settings?tab=credits",
  "billing": {
    "on": true,
    "unit": "credits",
    "paused": false,
    "capsInPlan": false
  }
}