3. Initialize Obscura
To start interacting with the Obscura network, import the SDK and create a new instance.
Security Note: Never commit your API keys directly to version control. We recommend using environment variables (e.g., process.env.OBSCURA_API_KEY) to keep your credentials safe.
import { Obscura } from '@obscura/sdk';
const obscura = new Obscura({
apiKey: 'your-api-key',
network: 'mainnet-beta' // or 'devnet' for testing
});Last updated

