Setting up your integration
You can pregenerate wallets associated with a given account, like an email address or social login, without requiring the user to login. You can even send assets to the wallet before the user logs in to your app for the first time.
Once the user associated with the account logs in, they will be able to access the pregenerated wallet and any assets sent to them.
To pregenerate an embedded wallet, use one of the supported backend SDKs:
Get your API keys#
To start, go to the Openfort Dashboard and select your desired project from the dropdown at the top. Then, navigate to the Developers page > API Keys tab for your app. Then grab you secret key.
Your app secret is a sensitive value that gives you permission to manage Openfort from your server. Do not expose it outside of your backend server.
Once you've retrieved your API keys, you can begin interacting with Openfort's API in one of two ways: using the server-side SDKs, or querying Openfort's REST API directly.
Server SDKs#
These libraries includes helpful utilities around verifying access tokens issued by Openfort and interacting with Openfort's API to query and import users, create wallets, verify webhooks, and more.
You can visit the SDK reference documentation to learn more about the available SDKs and how to use them in your server-side application.
Using the REST API#
You can visit the API reference documentation to learn more.
For example, in a JavaScript fetch request, your headers should look like:
_10headers: {_10 'Authorization': `Bearer sk_test_...`,_10}