Skip to main content

Constants Override

The constantsOverride prop for the Node SDK allows the end-developer to take greater control over how certain values are configured. Constants can be overridden individually.

ConstantDefaultDescription
storagePrefix"@node-fi/sdk-core/"

The storage prefix used for persisted data.

To Note: Changing this value after launching your app will mean the SDK will be unable to find your previous data.

priceRefetchPeriod30 * 1000The time, in ms, to wait to refetch new prices
swapQuoteRefetchPeriod5 * 1000The time, in ms, to wait to refetch swap quotes
defaultCurrencyOverride"USD"The default fiat currency off of which prices are based.