setupClient
Ce contenu n’est pas encore disponible dans votre langue.
setupClient(
config):Promise<FrakClient|undefined>
Defined in: clients/setupClient.ts:21
Directly setup the Frak client with an iframe Return when the FrakClient is ready (setup and communication estbalished with the wallet)
Parameters
Section titled “Parameters”config
Section titled “config”The configuration to use for the Frak Wallet SDK
config
Section titled “config”Returns
Section titled “Returns”Promise<FrakClient | undefined>
a Promise with the Frak Client, or undefined if the wallet iframe has not connected after the 30 s handshake deadline (the client is then detached and the hidden iframe stays on the page)
Example
Section titled “Example”const frakConfig: FrakWalletSdkConfig = { metadata: { name: "My app title", },}const client = await setupClient({ config: frakConfig });