Closed attacksafe closed 2 months ago
hi @attacksafe please use this project as a reference, you don't need to run the SDK repo for building a bot, https://github.com/wen-moon-ser/moonshot-bot-examples In this example, we show how to buy and sell using direct RPC calls via nodejs.
I want to check the prices. When I run the command I get this error
PS C:\Users\cn\Desktop\tele\moon\moonshot-sdk-main> npx ts-node src/tests/token.test.ts C:\Users\cn\Desktop\tele\moon\moonshot-sdk-main\srctests\token.test.ts:4 describe('Token', () => { ^ ReferenceError: describe is not defined at Object. (C:\Users\cn\Desktop\tele\moon\moonshot-sdk-main\srctests\token.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module.m._compile (C:\Users\cn\AppData\Local\npm-cache_npx\1bf7c3c15bf47d04\node_modules\ts-node\src\index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Object.require.extensions. [as .ts] (C:\Users\cn\AppData\Local\npm-cache_npx\1bf7c3c15bf47d04\node_modules\ts-node\src\index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1207:32) at Function.Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at phase4 (C:\Users\cn\AppData\Local\npm-cache_npx\1bf7c3c15bf47d04\node_modules\ts-node\src\bin.ts:649:14) at bootstrap (C:\Users\cn\AppData\Local\npm-cache_npx\1bf7c3c15bf47d04\node_modules\ts-node\src\bin.ts:95:10) PS C:\Users\cn\Desktop\tele\moon\moonshot-sdk-main>
Please help me, I don't understand programming