To install dependencies:
pnpm installTo run:
pnpm devor for production
pnpm build && pnpm startTo get started, add your thirdweb API key to the .env file.
- Choose a project on your team page or create a new one
- Go to the project settings and copy the Client ID
- Create a copy of the
.env.examplefile and rename it to.env - Set the value of
THIRDWEB_CLIENT_IDto your Client ID
THIRDWEB_CLIENT_ID=your_api_keyEdit the src/index.ts file to create your endpoints, define your source queries and return a response.
There are 2 example endpoints already created in the file as a starting point.
GET /chains/:chainId/contracts/:address/transactions- This endpoint fetches the latest transactions for a given address on a given chain.GET /usdt-transfers- This endpoint fetches the latest USDT transfers events on ethereum and polygon.
To run your blueprint locally run pnpm dev.
To test your blueprint, run pnpm test.