Bounties
Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.
lid.bounties.list
your bounties (filters: status, tag)
Key permission: none (read)
lid.bounties.list(input?, options?)
| Name | Type | Required | Source |
|---|---|---|---|
offset | number | Optional | query |
limit | number | Optional | query |
locale | string | Optional | query |
archived | string | Optional | query |
tag | string | Optional | query |
status | string | Optional | query |
const result = await lid.bounties.list();{
"bounties": [],
"total": 0,
"limit": 20,
"offset": 0
}lid.bounties.create
create a bounty with its prize held on Solana (acceptTerms:true; no deletion, no refunds)
Key permission: catalogo (catalog)
lid.bounties.create(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
acceptTerms | boolean | Required | body |
title | string | Required | body |
description | string | Optional | body |
descriptionHtml | string | Optional | body |
criteria | string | Optional | body |
criteriaHtml | string | Optional | body |
prizes | PrizeInput[] | Optional | body |
deadline | unknown | Optional | body |
tags | string[] | Optional | body |
maxSubmissionsPerUser | number | Optional | body |
submissionType | 'link' | 'file' | 'text' | 'any' | Optional | body |
submissionFields | SubmissionFieldInput[] | Optional | body |
kycRequired | boolean | Optional | body |
creatorPaysFee | boolean | Optional | body |
isPublic | boolean | Optional | body |
submissionsPublicOnClose | boolean | Optional | body |
baseLocale | 'es' | 'en' | Optional | body |
translations | object | Optional | body |
fund | boolean | Optional | body |
fundAmount | string | Optional | body |
const result = await lid.bounties.create({
acceptTerms: false,
title: '…',
});{
"ok": true,
"bounty": {
"baseLocale": "es",
"availableLocales": [
"es"
],
"resolvedLocale": "es",
"translations": {},
"id": "718e7b7a-0796-4fe7-98f7-bee8d7d06e1a",
"creatorUserId": 3,
"creator": "5oNHhnyNBgwce11xJeJ7EU4tbvBovu9fiFftwwqEVF8Y",
"title": "Docs capture bounty",
"description": "A tiny challenge created to capture a sample response for the docs.",
"descriptionHtml": null,
"criteria": null,
"criteriaHtml": null,
"poolId": null,
"poolPda": null,
"prizes": [],
"deadline": "2026-10-03T17:07:16.000Z",
"status": "draft",
"tags": [],
"isPublic": true,
"submissionsPublicOnClose": false,
"maxSubmissionsPerUser": 1,
"submissionType": "any",
"submissionFields": [],
"kycRequired": false,
"creatorPaysFee": true,
"termsAcceptedAt": "2026-09-26T17:07:17.081Z",
"blocked": false,
"blockedAt": null,
"blockedReason": null,
"archived": false,
"archivedAt": null,
"createdAt": "2026-09-26T17:07:17.081Z",
"updatedAt": "2026-09-26T17:07:17.081Z"
},
"note": "Bounty creado en draft. Para abrirlo, fondeá el escrow: repetí con fund:true o firmá create_pool+fund_pool desde web y hacé el PATCH.",
"quota": {
"lifetimeUsed": 7,
"lifetimeLimit": null,
"lifetimeRemaining": null,
"todayUsed": 0,
"dailyLimit": null,
"dailyRemaining": null,
"dailyResetInSeconds": null
}
}lid.bounties.submissions
the submissions of your bounty
Key permission: none (read)
lid.bounties.submissions(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
offset | number | Optional | query |
limit | number | Optional | query |
status | string | Optional | query |
const result = await lid.bounties.submissions({
id: '…',
});{
"submissions": [],
"total": 0,
"limit": 50,
"offset": 0
}lid.bounties.reviewSubmission
review a submission: accepted, rejected or selected
Key permission: catalogo (catalog)
lid.bounties.reviewSubmission(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
sid | string | Required | path |
status | 'accepted' | 'rejected' | 'winner' | Required | body |
assignedAmount | string | Optional | body |
feedback | string | Optional | body |
const result = await lid.bounties.reviewSubmission({
id: '…',
sid: '…',
status: 'accepted',
});Hand-written sample (not captured on devnet yet)
{
"submission": {
"id": "f9a362ac-a5a0-485d-aff7-0c2d685a782f",
"bountyId": "4ec902d5-0256-484f-a11f-2c998dd348a2",
"userId": "deb4152c-d87b-47e3-aa7a-7c85d69ee6d3",
"submitter": "QPH7sFAtHxwYKrD5tHoMMQZQS93xjgpkHwVa1SmFEsP2",
"content": "Here is my submission, links to the source files below.",
"links": [
"https://example.com/portfolio"
],
"files": [
{
"key": "private/files/9f2c4b1a-guide.pdf",
"name": "submission.zip",
"type": "application/zip",
"size": 184320,
"url": "https://cdn.lid.pro/private/files/submission.zip?signature=…&expires=1758400000"
}
],
"answers": {},
"status": "submitted",
"feedback": "Great composition, approved.",
"assignedAmount": "5000000",
"paidAt": "2026-09-20T15:04:05.000Z",
"paidSignature": "z7iKJmyrJ5tN1Ab7fdaC9pPPiLGNia8c7aBGaGG85PuCKoFXmKydr9Na6EukC4XUYEHStTbNH48rc8eEkFY4nW3H",
"createdAt": "2026-09-20T15:04:05.000Z",
"updatedAt": "2026-09-20T15:04:05.000Z",
"submitterDisplayName": "carla"
}
}lid.bounties.assignWinners
assign the recipients on Solana (signs the prize payout)
Key permission: dinero (money)
lid.bounties.assignWinners(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
const result = await lid.bounties.assignWinners({
id: '…',
});Hand-written sample (not captured on devnet yet)
{
"ok": true,
"poolPda": "MbLhHAXgBFFxtJuyBxiPoNn2ML45cC149HKvKNwCFw4S",
"assigned": [
{
"submissionId": "fd635cc0-1c50-4473-a337-da6867142668",
"winner": "f45f1bTH3aV7Cor9Bu1kGLkmhGrS1b2FKdAMzKEpDJs5",
"amount": "5000000",
"signature": "ezbm3yPbLLPDeLTCHjiekr4ESieGUq5K9LoNFxrNoHrKZcup9197hpcKKPNHK632uggiT6EbWwQTYDoGK66kEJ6d",
"prizeAssignment": "assigned"
}
],
"failed": [
{
"submissionId": "5adf313a-8bbf-41d6-afc9-0c5236b8c383",
"winner": "Qnc6H7RQSU8cH3pfkx8tAc4fcASdE1s5NaPoYW5kErzW",
"amount": "5000000",
"error": "insufficient_pool_funds"
}
],
"note": "The listener confirms each assignment; recipients claim their prize from the pool."
}