Skip to content

getCurvyConfig ​

Returns the ambient config registered by a config constructor or setCurvyConfig.

Import ​

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

Usage ​

ts
const config = getCurvyConfig();

Returns ​

CurvyConfig

Parameters ​

This function takes no parameters.

Errors ​

Throws NoCurvyConfigError when no ambient config is registered.