ShroomDK Migration Guide
As we continue to innovate, we're transitioning from our legacy API/SDK, ShroomDK, to our new and improved API v2. This upgraded API enables users to execute complex SQL queries on Flipside's Blockchain Data Sets and provides enhanced scalability and performance.
Here are the key steps for migrating to API v2:
pip install flipside
Then, create a new Flipside instance with your API key and the new API endpoint:
flipside = Flipside("<YOUR_API_KEY>", "https://api-v2.flipsidecrypto.xyz")
npm install @flipsidecrypto/sdk
Subsequently, instantiate a new Flipside object using your API key and the new API endpoint:
const flipside = new Flipside("<YOUR_API_KEY>", "https://api-v2.flipsidecrypto.xyz");
The updated SDKs will automatically target the new API v2 endpoints.
If you're directly accessing the API, replace all ShroomDK API URLs in your codebase with the new v2 API URL:
API v2 introduces changes to JSON responses. Adjust your response handling code to match these new specifications. Detailed information on the new JSON responses is available on our API documentation page.
After making these changes, be sure to thoroughly test your applications to confirm smooth functionality with API v2. For any issues encountered during the migration, please reach out to our support team.