Before you start
Set up your project and get an API key.
Wallets Quickstart
See a full working example.
1
Install the SDK
Run the following command to install the SDK:
2
Add the Crossmint providers to your app
Add the necessary Crossmint providers to your app. This example uses Crossmint Auth
but you can use any authentication provider of your choice.With the current setup, a wallet will be created automatically on login.
Configuring the Wallet Provider
If set creates a wallet on login using the specified configuration.
A set of callbacks to be called when the wallet is created or a transaction is initiated.
Only applies if you are using a passkey as the signer.If true, modals explaining what passkeys are will be shown to the user when creating a wallet and signing a transaction, for a better user experience.
Styles to configure the appearance of the passkey modal.
3
Allow users to login and logout
Add a component to authenticate the user.
auth-button.tsx
4
Use the wallet
Access and use the wallet object.
wallet.tsx
Launching in Production
For production, the steps are almost identical, but some changes are required:- Create a developer account on the production console
- Create a production client API key on the API Keys page with the API scopes
users.create
,users.read
,wallets.read
,wallets.create
,wallets:transactions.create
,wallets:transactions.sign
,wallets:balance.read
,wallets.fund
- Replace your test API key with the production key
Learn More
Check Balances
Check the balance of a wallet.
Transfer Tokens
Send tokens between wallets.
Delegated Signers
Add delegated signers to a wallet.