Skip to content

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

Function: setupClient()

setupClient(config): Promise<FrakClient | undefined>

Defined in: clients/setupClient.ts:20

Directly setup the Frak client with an iframe Return when the FrakClient is ready (setup and communication estbalished with the wallet)

Parameters

config

The configuration to use for the Frak Wallet SDK

config

FrakWalletSdkConfig

Returns

Promise<FrakClient | undefined>

a Promise with the Frak Client

Example

const frakConfig: FrakWalletSdkConfig = {
    metadata: {
        name: "My app title",
    },
}
const client = await setupClient({ config: frakConfig });