Products
Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.
lid.products.list
list your products
Key permission: none (read)
lid.products.list(input?, options?)
const result = await lid.products.list();{
"ok": true,
"products": [
{
"productPda": "7Thx4DKF8ST1MFvpbDDgYJwS2eWgeVyQ5crEpPzsYtnN",
"productId": "85771b9d-a250-4ab8-9934-bbccd6efba86",
"name": "Checkout test · 10 cents",
"image": null,
"tags": [],
"createdViaMcp": false,
"archived": false,
"priceInUsdc": "100000",
"maxSupply": 10000,
"status": "confirmed"
},
{
"productPda": "GChjmLffjgv2UFTipAoRFHaHSdGBJcmBDsDJ1Ayaqpia",
"productId": "cca40cce-9d7b-44cf-99bf-23b853651ddf",
"name": "Paid sample · Lid docs",
"image": "https://lidpro-q2r8s1hvcfekebiwyu.t3.storageapi.dev/public/images/beffada8-df0e-42f1-98d5-93b062e2a7a4-sample-cover.png",
"tags": [
"docs",
"sample"
],
"createdViaMcp": false,
"archived": false,
"priceInUsdc": "1000000",
"maxSupply": 100000,
"status": "confirmed"
},
{
"productPda": "E81KEoRCnjmwC7Z9GZm3VnkeyRqZGjqah6UQYfH35gTT",
"productId": "cefba70b-2e2c-4e75-8208-16e0c3513c0f",
"name": "Sample product · Lid docs",
"image": "https://lidpro-q2r8s1hvcfekebiwyu.t3.storageapi.dev/public/images/beffada8-df0e-42f1-98d5-93b062e2a7a4-sample-cover.png",
"tags": [
"docs",
"sample"
],
"createdViaMcp": false,
"archived": false,
"priceInUsdc": "0",
"maxSupply": 100000,
"status": "confirmed"
}
],
"total": 3
}lid.products.create
create a product on Solana (custodial, gas paid by the platform)
Key permission: catalogo (catalog)
lid.products.create(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
name | string | Required | body |
priceUsdc | number | Required | body |
maxSupply | number | Required | body |
symbol | string | Optional | body |
maxPurchasesPerWallet | number | Optional | body |
saleStartTime | number | Optional | body |
secondaryRoyaltyBps | number | Optional | body |
affiliateEnabled | boolean | Optional | body |
affiliateCommissionBps | number | Optional | body |
description | string | Optional | body |
descriptionHtml | string | Optional | body |
metaDescription | string | Optional | body |
creatorDisplayName | string | Optional | body |
customUrl | string | Optional | body |
tags | string[] | Optional | body |
previewImageUrl | string | Optional | body |
ipfsImageCid | string | Optional | body |
ipfsMetadataUri | string | Optional | body |
gallery | FileRef[] | Optional | body |
extraFiles | FileRef[] | Optional | body |
baseLocale | 'es' | 'en' | Optional | body |
translations | object | Optional | body |
const result = await lid.products.create({
name: '…',
priceUsdc: 0,
maxSupply: 0,
});{
"ok": true,
"product": {
"productPda": "3YYHiccwM6GbtKLeccmse7Ns3fxBc3XJHGUEvzy4Mff1",
"productId": "ba636302-555c-4762-bc8c-767ff58ae7a4",
"signature": "4FHQ2cSoknrAje6LwfRmVLyEGFczoDa2NQwySoEpPB6EbePFB6PkEzeQXqt1KRXCv37jR27deRhUHusugztoaWB2",
"creator": "5oNHhnyNBgwce11xJeJ7EU4tbvBovu9fiFftwwqEVF8Y",
"onChainCreator": "14pRP6hCk2cewgm12o8t4xB3ssyaTxTYkN29L9ceUgXJ",
"name": "Checkout test · 25 cents",
"priceUsdc": 0.25,
"maxSupply": 10000,
"status": "pending",
"explorer": "https://solana.fm/tx/4FHQ2cSoknrAje6LwfRmVLyEGFczoDa2NQwySoEpPB6EbePFB6PkEzeQXqt1KRXCv37jR27deRhUHusugztoaWB2?cluster=devnet-solana",
"isPublic": true
},
"quota": {
"lifetimeUsed": 4,
"lifetimeLimit": null,
"lifetimeRemaining": null,
"todayUsed": 0,
"dailyLimit": null,
"dailyRemaining": null,
"dailyResetInSeconds": null
}
}lid.products.update
Update the editorial side of your product: attach the files buyers download, the cover, the copy, or publish and unpublish it. Terms set on Solana (price, supply, commission) are not editable here. Does not consume creation quota.
Key permission: catalogo (catalog)
lid.products.update(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
productPda | string | Required | path |
name | string | Optional | body |
description | string | Optional | body |
descriptionHtml | string | Optional | body |
metaDescription | string | Optional | body |
customUrl | string | Optional | body |
tags | string[] | Optional | body |
previewImageUrl | string | Optional | body |
gallery | FileRef[] | Optional | body |
extraFiles | FileRef[] | Optional | body |
publicFiles | FileRef[] | Optional | body |
isPublic | boolean | Optional | body |
const result = await lid.products.update({
productPda: '…',
});{
"ok": true,
"product": {
"productPda": "3YYHiccwM6GbtKLeccmse7Ns3fxBc3XJHGUEvzy4Mff1",
"name": "Checkout test · 25 cents",
"isPublic": true,
"extraFilesCount": 1
}
}