Something.cool
  • Getting started
    • Why Something.cool?
    • 1st stage - Bonding curve
    • 2nd stage - CoolDEX trading
  • Zero-fee coins
    • What is Zero-fee coin?
    • How to launch Zero-fee coin
  • Community coins
    • What is Community coin?
    • Community contribution / How it works?
      • Holders
      • Liquidity providers
      • Burning
    • How to launch Сommunity coin
  • Features
    • Coin Explore
      • New Pairs
      • Coin Vision
    • Spaces
    • Rewards
  • Community
    • Referral program
    • X
    • Media kit
  • Developer Resources
  • Platform Architecture
    • Technical Introduction
    • Overview
    • Components
  • SC Bonding Curve
    • Overview
    • Functions
      • Create Token
      • Buy Token
      • Sell Token
      • Migrate
      • Admin Set Properties
    • Price Calculation
    • Fees
  • CoolDEX
    • Overview
    • Functions
      • Initialize Pool
      • Swap Base In
      • Swap Base Out
      • Deposit
      • Withdraw
      • Withdraw PnL
    • Price Calculation
    • Fees
  • Token Types
    • Token Types
  • Migration Process
    • Migration Process
  • Rewards Claiming
    • Overview
    • Authentication
    • Endpoints
    • Errors
    • Example
  • Reference
    • SC Bonding Curve IDL
    • CoolDEX IDL
    • Log Structure
    • DEVNET EXAMPLES
  • INTERNAL API
    • Overview
    • Register
  • Example: Registering a User via Internal API (JavaScript)
Powered by GitBook
On this page
  • Overview
  • API Basics
  • Authentication
  • Available Endpoints
  • Claim Process Flow
  • Rate Limits
  • Error Handling
  • Response Format
  • Success Response
  • Error Response
  • Next Steps
  1. Rewards Claiming

Overview

Overview

Something.cool provides rewards to users holding tokens or providing liquidity. These rewards can be claimed through our public API, allowing users to receive their earned SOL or tokens.

API Basics

  • Base URL: Coming Soon

  • Status: Coming Soon

Authentication

The API uses Solana wallet signature verification to authenticate users. This ensures that only the actual wallet owner can request a claim transaction to avoid spam. We do not use API keys or tokens; instead, users must sign messages with their wallet to prove ownership.

Available Endpoints

The API provides several endpoints for interacting with the rewards claiming system:

Endpoint
Method
Description

/rewards/:address

GET

Get all claimable rewards for a wallet address (requires signature)

/rewards/:address/tokens/:tokenAddress

GET

Get claimable rewards for a specific token (requires signature)

/rewards/:signature/status

GET

Check status of a claim transaction

/rewards/:address/initiate

POST

Initiate a claim transaction (requires signature)

Claim Process Flow

The rewards claiming process follows these steps:

  1. Check Claimable Rewards

    • Query the API to see what rewards are available for claiming

  2. Initiate Claim

    • Send a signed request to initiate the claim process

    • The API returns a partially signed transaction

  3. Complete Claim

    • Sign the transaction with your wallet

    • Submit the fully signed transaction to the Solana network

  4. Verify Status

    • Check the status of your claim transaction

Rate Limits

To ensure fair usage of the API, rate limits are enforced:

  • 100 requests per 15-minute window per IP address

  • Exceeding this limit will result in HTTP 429 (Too Many Requests) responses

Error Handling

Response Format

All API responses follow a consistent format:

Success Response

{
  "status": "success",
  "data": {
    // Response data specific to the endpoint
  }
}

Error Response

{
  "status": "error",
  "code": "ERROR_CODE",
  "message": "Human-readable error message"
}

Next Steps

PreviousMigration ProcessNextAuthentication

Last updated 1 month ago

All errors follow a standardized format with unique error codes. See the page for a comprehensive list.

- Learn how to authenticate with the API

- Detailed information on API endpoints

- All error codes explained

- Look at a simple example in js

Error Codes
Authentication Guide
Endpoints Reference
Errors
Example