setCurvyConfig
Sets the ambient config used by actions that do not receive an explicit config.
Import
ts
import { setCurvyConfig } from "@0xcurvy/curvy-sdk/config";Usage
ts
setCurvyConfig(config);Passing null clears the ambient reference:
ts
setCurvyConfig(null);Lifecycle
Replacing or clearing the ambient reference does not destroy the previous config. Call destroyConfig first when that config is no longer needed.
Returns
void
Parameters
config
- Type:
CurvyConfig | null - Required: yes
The config to register, or null to clear the current ambient value.
ts
setCurvyConfig(
config,
);