test3.ts

Test 3: Test Top Holder Retrieval

import { fetchTopHolders } from "../src/trade";
import assert from "assert";

describe("Top Holder Retrieval Tests", () => {
  it("should retrieve top holders for a given token", async () => {
    const tokenMint = "So11111111111111111111111111111111111111112";

    const holders = await fetchTopHolders(tokenMint);
    assert.ok(holders.length > 0);
  });
});

Last updated