Getting Started with Sequence Kit
Learn how to get started with Sequence Kit by installing the necessary packages and using the wagmi connectors to utilize an Embedded Wallet or Native EOA Wallet for authentication.
To spin up a quick boilerplate that leverages Sequence Kit, you can run the following command from your terminal to install the Sequence-CLI and create a react app:
Otherwise, we will walk you through the process of installing Sequence Kit, instantiating the connection modal, and displaying the Inventory in your application.
Installing Sequence Kit Packages
Sequence Kit is modular, allowing you to install only the necessary packages. To get started, install the @0xsequence/kit
core package, as well as install other dependencies such as wagmi
, viem
, and 0xsequence
.
Setting Up your Dapp
To utilize the core kit wrapper for connecting web3 wallets to your application, follow these steps:
Sequence Kit is built on top of wagmi, so for advanced configurations, sending transactions, calling contracts, etc., please refer to the wagmi documentation.
Create a Config
Next, a configuration variable for Sequence Kit will need to be created as either a waas
(meaning an Embedded Wallet) or universal
(meaning a Universal Wallet) wallet type.
For waas
, first obtain a WaaS Config Key from the Sequence Builder, Wallet Connect ID, and setup other Login Provider configuration. For both wallet type options, obtain and use a project access key.
In order to customize further, you can view additional configuration parameters.
Setup Provider Component
The configuration we created in step 2 needs to be passed into the providers below in the main.tsx
, as well as the inclusion of the Sequence Design System styles.css
stylesheet:
For web3 interactions, wagmi exposes a set of React hooks that make it convenient for common functions like sending transactions. Please check out our Embedded Wallet boilerplate with Sequence Kit for more examples of interactions.
Was this page helpful?