Airdrops

Launch Airdrop

You can quickly distribute tokens from collections you've launched with Comet by using the POST /airdrop API endpoint. You'll need to specify a list of recipients (either their Comet User IDs or Solana addresses), and for each recipient indicate which collection you want them to receive. An example request is below.

After you've launched your airdrop, Comet will return an id that you can use to monitor the status of the airdrop.

Example Request Body
{
  "airdrops": [
    { "collectionId": "9f46cddbd46f", "address": "AXkcPCWrWYGuayYgKp7y6LhugKzq5f3pqeKnrSod9ufy" },
    { "collectionId": "9f46cddbd46f", "userId": "c4367732ab0c" }
  ] 
}

Send tokens to many users.

POST https://api.withcomet.com/v1/airdrop

Headers

Name
Type
Description

Authorization*

String

Bearer token

Request Body

Name
Type
Description

airdrops*

String

List of recipients, specifying which collection each will receive.

{
    "id": "I4WTgq6ZHb2ncugUWBz1oSPDld5eJi5U",
    "count": 2
}

Check Airdrop Status

Get the status of a previously launched airdrop.

GET https://api.withcomet.com/v1/airdrop/:id

Headers

Name
Type
Description

Authorization*

String

Bearer token

{
    "id": "I4WTgq6ZHb2ncugUWBz1oSPDld5eJi5U",
    "statuses": {
        "SUCCEEDED": [
            {
                "taskId": "a64445c3866c7080549051276f289937",
                "CometUserId": "c4367732ab0c",
                "address": "2yAEzsC4GPCT3kGq39K5KLAqPFo4xzvNShDZHqCWo4Gx"
            },
            {
                "taskId": "37e44b47a52368a95bc7a0b2170e2e5f",
                "CometUserId": null,
                "address": "AXkcPCWrWYGuayYgKp7y6LhugKzq5f3pqeKnrSod9ufy"
            }
        ]
    },
    "count": 2
}

Last updated