/api/transactions

Description: This endpoint allows you to retrieve all transactions stored in the CabalSpy database, offering a comprehensive view of trading activity on the Solana blockchain. It’s ideal for developers and traders who need to monitor or analyze specific transactions. You can filter results using optional parameters to narrow down the data, making it highly customizable for your needs.

  • Required Parameter: `api_key` – Your unique API Key (e.g., `?api_key=YOUR_API_KEY`).
  • Optional Parameters:
    • ?limit=N – Limits the number of transactions returned (e.g., `?limit=5`). Default is 100, but you can set it to any value up to 100.
    • ?offset=N – Skips the first N transactions for pagination (e.g., `?offset=100` to start from the 101st transaction).
    • ?token=SYMBOL – Filters transactions by token symbol (e.g., `?token=NOPE` for trades involving the NOPE token).
    • ?wallet=ADDRESS – Filters transactions by wallet address (e.g., `?wallet=5TuiERc4X7EgZTxNmj8PHgzUAfNHZRLYHKp4DuiWevXv`).
    • ?type=TYPE – Filters by transaction type, where `TYPE` can be `kauf` (buy) or `verkauf` (sell, e.g., `?type=verkauf`).
    • ?mint=MINT_ADDRESS – Filters by token mint address (e.g., `?mint=DkgbP8aB38JeiTWS8woNhRpYVomhHH2uyudX3GoXpump`).
  • Usage Cost: Each request deducts 10 usage points, regardless of the `limit` parameter.
  • Response Format: Returns a JSON array of transaction objects, each containing `id`, `signature`, `wallet`, `mint`, `token_symbol`, `transaction_type`, `pre_balance`, `post_balance`, `lamports_diff`, `sol_value`, `slot`, and `created_at` fields, sorted by `created_at` in descending order.

Example Request:

curl "http://82.29.177.109:8080/api/transactions?api_key=YOUR_API_KEY&limit=5&token=NOPE"

Example Response:

[ { "id": 11752, "signature": "5mdTvSjGoXCLJnPjHz7swPYtvz6UAdysPh6QeaJrp1QM54CCku19izWZV5BgRpa73AW5WqzdXSfnmsvX8RPvPhsH", "wallet": "5TuiERc4X7EgZTxNmj8PHgzUAfNHZRLYHKp4DuiWevXv", "mint": "DkgbP8aB38JeiTWS8woNhRpYVomhHH2uyudX3GoXpump", "token_symbol": "NOPE", "transaction_type": "verkauf", "pre_balance": 77010942937, "post_balance": 81399266533, "lamports_diff": 4388323596, "sol_value": "4.388323596", "slot": 322747265, "created_at": "2025-02-24 09:01:33" } ]

Test this Endpoint