Skip to content

Documentation / @frak-labs/core-sdk / index / FrakWalletSdkConfig

Type Alias: FrakWalletSdkConfig

FrakWalletSdkConfig = { customizations?: { css?: `${string}.css`; i18n?: I18nConfig; }; domain?: string; metadata: { currency?: Currency; homepageLink?: string; lang?: Language; logoUrl?: string; merchantId?: string; name?: string; }; waitForBackendConfig?: boolean; walletUrl?: string; }

Defined in: types/config.ts:17

Configuration for the Frak Wallet SDK

Properties

customizations?

optional customizations?: { css?: `${string}.css`; i18n?: I18nConfig; }

Defined in: types/config.ts:59

Some customization for the modal

css?

optional css?: `${string}.css`

Custom CSS styles to apply to the modals and components

i18n?

optional i18n?: I18nConfig

Custom i18n configuration for the modal


domain?

optional domain?: string

Defined in: types/config.ts:73

The domain name of your application

Default Value

window.location.host

metadata

metadata: { currency?: Currency; homepageLink?: string; lang?: Language; logoUrl?: string; merchantId?: string; name?: string; }

Defined in: types/config.ts:26

Some metadata about your implementation of the Frak SDK

currency?

optional currency?: Currency

The currency to display in the modal

Default Value

"eur"

homepageLink?

optional homepageLink?: string

The homepage link that could be displayed in a few components

lang?

optional lang?: Language

Language to display in the modal If undefined, will default to the browser language

logoUrl?

optional logoUrl?: string

The logo URL that will be displayed in a few components

merchantId?

optional merchantId?: string

Your merchant ID from the Frak dashboard (UUID format) Used for referral tracking and analytics If not provided, will be auto-fetched from the backend using your domain

name?

optional name?: string

Your application name (will be displayed in a few modals and in SSO)


waitForBackendConfig?

optional waitForBackendConfig?: boolean

Defined in: types/config.ts:80

Wait for backend config before rendering components. When true (default), components show a spinner until backend config is resolved. When false, components render immediately with SDK static config / HTML attributes.

Default Value

true

walletUrl?

optional walletUrl?: string

Defined in: types/config.ts:22

The Frak wallet url

Default Value

"https://wallet.frak.id"