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.
Related
peekCurvyConfig— read without throwingsetCurvyConfig— replace or clear the ambient valuedestroyConfig— destroy resources before clearing a config