YZYLAB / solana-swap

Solana Swap API, for sniping bots or any platform that wants to implement fast token swaps.
https://docs.solanatracker.io
MIT License
58 stars 16 forks source link

TypeError: SolanaTracker is not a constructor #1

Closed studentofcoding closed 5 months ago

studentofcoding commented 5 months ago

Error when running the example swap code on JS

file:///Users/gic_owner/Desktop/Personal/GIC_Capital/Remora/remora-tracker-and-copy-bot/swap_tx.js:7
    const solanaTracker = new SolanaTracker(
                          ^

TypeError: SolanaTracker is not a constructor
    at swap (file:///Users/gic_owner/Desktop/Personal/GIC_Capital/Remora/remora-tracker-and-copy-bot/swap_tx.js:7:27)
    at file:///Users/gic_owner/Desktop/Personal/GIC_Capital/Remora/remora-tracker-and-copy-bot/swap_tx.js:36:1
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
YZYLAB commented 5 months ago

const SolanaTracker = require("solana-swap").default;