Follow these steps to set up a TypeScript and Node.js project for interacting with the Bags API.
tsconfig.json
file with default settings, which you can customize as needed.
.env
file in your project root to store your Bags API key, Solana RPC URL, and other secrets:
.env
file to version control. Add it to your .gitignore
file to keep your secrets safe..env
to your .gitignore
file: