Quickstart
Get started with Openfort libraries
Openfort Kit is the easiest way to onboard your users onchain.
- Providers
You will get out of the box support for:
- Simple UX — Give users a simple, attractive experience.
- Multiple login methods - Email, Social, WalletConnect, and more.
- Non-custodial embedded signer - Secure, self-custodied signing without complexity
- Connection with Web3 wallets
- Beautiful Themes - Predesigned themes or full customization
1. Install#
Start by installing Openfort Kit and its peer dependencies using your package manager of choice:
2. Get your API keys#
In the API keys section of Openfort dashboard, you will find:
- Publishable Key: Safe to expose in client-side environment
- Secret Key: Must be kept secure and used only server-side
To generate non-custodial wallets:
- Scroll to the Shield section and click Create Shield keys
- Store the encryption share safely when it appears (you'll only see it once)
- You'll receive:
- Shield Publishable Key: Safe for client-side use
- Shield Secret Key: Keep secure, server-side only
3. Set up providers.#
Set up providers for Wagmi, TanStack Query, and OpenfortKit.
To set up a config for Wagmi, we will use Wagmi's createConfig
function with @openfort/openfort-kit
's getDefaultConfig
function. This automatically sets up the Wagmi instance to support all chains and transports supported by Openfort. If you need more configuration go to the Wagmi configuration guide.
To set up OpenfortKitProvider
we will need the publishable key from the Openfort dashboard, and the wallet configuration. More information on the wallet configuration can be found here.
Wrap your app in the Providers
component.
4. You're good to go!#
Once you've configured your app, you can now use OpenfortKitButton
to onboard your users.
5. Next steps#
Now that you've set up Openfort Kit, you can explore more features and customization options: