> For the complete documentation index, see [llms.txt](https://oblvn.gitbook.io/oblvn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oblvn.gitbook.io/oblvn/usage/exploring-coin-insights.md).

# Exploring Coin Insights

To explore detailed insights about a specific coin, follow these steps:

1. Go to [**oblvn.fun**](http://oblvn.fun).
2. Paste the contract address of the coin you want to explore.

```tsx
// Backend Logic - Andrew 2/18/2025
import axios from "axios";

interface Buyer {
  address: string;
  price: number; 
}

interface Holder {
  address: string;
  amount: number; 
}

interface Trader {
  address: string;
  successfulTrades: number; 
}

export const fetchEarlyBuyers = async (coinContract: string): Promise<Buyer[]> => {
  const response = await axios.get(`https://api.solana.com`, {
    params: {
      method: "getTransactionHistory",
      params: [coinContract], 
    },
  });

  nse)
  return response.data.transactions.map((txn: any) => ({
    address: txn.buyer,
    price: txn.priceAtPurchase,
  }));
};

export const fetchTopHolders = async (coinContract: string): Promise<Holder[]> => {
  const response = await axios.get(`https://api.solana.com`, {
    params: {
      method: "getTopHolders",
      params: [coinContract], 
    },
  });

  return response.data.holders.map((holder: any) => ({
    address: holder.walletAddress,
    amount: holder.tokenAmount,
  }));
};

export const fetchTopTraders = async (coinContract: string): Promise<Trader[]> => {
  const response = await axios.get(`https://api.solana.com`, {
    params: {
      method: "getTopTraders",
      params: [coinContract], 
    },
  });

  return response.data.traders.map((trader: any) => ({
    address: trader.walletAddress,
    successfulTrades: trader.successfulTrades,
  }));
};

```

OBLVN™ will provide detailed information about the coin, including:

* **Early Buyers**: Addresses of those who bought the coin early and at what price.
* **Top Holders**: The wallets holding the most of the token.
* **Top Traders**: Active wallets that have made the most successful trades with the coin.

```tsx
// Handling Backend Logic - Andrew 2/19/2025
import { Request, Response } from "express";
import { fetchEarlyBuyers, fetchTopHolders, fetchTopTraders } from "../utils/solanaApi";

export const getCoinDetails = async (req: Request, res: Response) => {
  const coinContract = req.params.coinContract;

  try {
    const earlyBuyers = await fetchEarlyBuyers(coinContract);
    const topHolders = await fetchTopHolders(coinContract);
    const topTraders = await fetchTopTraders(coinContract);

    res.json({
      earlyBuyers,
      topHolders,
      topTraders,
    });
  } catch (error) {
    console.error("Error fetching coin details:", error);
    res.status(500).json({ error: "Internal server error" });
  }
};

```
