Swing Points Program is Live 🚀 Learn More →

Debug mode

The Swing SDK provides a debug mode that provides helpful logs, intended for use during development. To enable debug mode, pass debug: true to the SDK constructor.

import { SwingSDK } from '@swing.xyz/sdk';
 
const swingSDK = new SwingSDK({
  // Your Swing Platform project identifier
  projectId: 'swing-project-id',
 
  // Enable debug mode
  debug: true,
});