interface ConnectWalletButtonParams {
    language?: Locales;
    onError?: HandleError;
    onWalletChange?: ((wallet) => void);
    style?: Styles;
    walletApp?: WalletApp;
}

Properties

language?: Locales

Interface language.Check available Locales in the related type.

Default Value

en
onError?: HandleError

Error handler function. You can also use try/catch operator instead.

onWalletChange?: ((wallet) => void)

Subscribe to wallet connect and disconnect events. You can also use global onWalletChange method of GameFi instance instead.

Type declaration

    • (wallet): void
    • Subscribe to wallet connect and disconnect events. You can also use global onWalletChange method of GameFi instance instead.

      Parameters

      Returns void

style?: Styles

Light or dark mode.

Default Value

light
walletApp?: WalletApp

Which wallet app will be connected. Check WalletApp to see available options.

Default Value

telegram-wallet

Generated using TypeDoc