firefly-sol / jupiter-arb

118 stars 53 forks source link

Getting error when index.ts is run #2

Closed tzack1 closed 1 year ago

tzack1 commented 2 years ago

downloaded the files and installed packages, after all package related errors where fixed, got this error:

if (typeof source !== 'string') { throw new TypeError('Expected String') } ^ TypeError: Expected String at decodeUnsafe (C:\wamp64\www\solanabot\node_modules\base-x\src\index.js:66:45) at Object.decode (C:\wamp64\www\solanabot\node_modules\base-x\src\index.js:109:18)

Is there something I am missing to run the application?

TheNovakAI commented 2 years ago

I am also getting the same. Must be part of the puzzle, lmk if you fixed it..

LenBob2021 commented 2 years ago

HAve you guys set up your .env file?

Juanba98 commented 2 years ago

You must create a ".env" file and store your SECRET_KEY variable. https://docs.jup.ag/jupiter-core/full-guide#4.-load-jupiter-instance-and-setup-your-wallet