Skip to content

peekCurvyConfig ​

Reads the ambient config without requiring one to exist.

Import ​

ts
import { peekCurvyConfig } from "@0xcurvy/curvy-sdk/config";

Usage ​

ts
const config = peekCurvyConfig();
if (config) {
  // An ambient config is registered.
}

Returns ​

CurvyConfig | null

Parameters ​

This function takes no parameters.