How to start latest version? #36
-
Hi, I was running an old version of the bot that was initiated by calling 'npm start'. I've updated for the OS contract update, but it's not clear to me how to start the bot now. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can now initialize a new npm project to use the sales bot.
Copy the following example file as Run Please note that you will need to modify some of the fields. The comments in the If you're not familiar with Node.js, I suggest you learn by either searching on Google or asking ChatGPT for help. |
Beta Was this translation helpful? Give feedback.
-
If you only use Alchemy then just delete the infura key and value as below: // Set up the Auth with the provider api keys (at least one is required)
const auth = new Auth({
alchemy: {
apiKey: process.env.ALCHEMY_API_KEY
}
}); |
Beta Was this translation helpful? Give feedback.
You can now initialize a new npm project to use the sales bot.
npm init -y
"type": "module"
to package.jsonnpm install enft dotenv
Copy the following example file as
index.js
.Run
node index.js
to start the script. (make sure you are using node version >= 18)Please note that you will need to modify some of the fields. The comments in the
example/js/onItemSold.js
file will guide you through the process.If you're not familiar with Node.js, I suggest you learn by either searching on Google or asking ChatGPT for help.