Setup
Setup the Arweave Wallet Kit in React applications
Last updated
Was this helpful?
Setup the Arweave Wallet Kit in React applications
Last updated
Was this helpful?
As seen in the introduction, the Arweave Wallet Kit utility is distributed across a few packages for modularity. The three main packages for using Arweave Wallet Kit with React apps are @arweave-wallet-kit/core
, @arweave-wallet-kit/react
, @arweave-wallet-kit/styles
. The core
and styles
package are peer dependencies for the react
package.
Alongside these, the strategies for each wallet have their own dedicated packages as well:
@arweave-wallet-kit/wander-strategy
@arweave-wallet-kit/browser-wallet-strategy
@arweave-wallet-kit/othent-strategy
@arweave-wallet-kit/webwallet-strategy
Note: Othent will be deprecated by the end of 2025. If you are integrating Arweave Wallet Kit into your dApp, it is recommended that you do NOT include the Othent strategy. For an Othent alternative, please check out Wander Connect:
You can configure one or more strategies depending on the wallets you wish to add support for.
Weβll be demonstrating the installation and setup for all 4 strategies. The Wallet Kit can be installed with any of the popular package managers as follows:
or
or
or
To use the library, you need to wrap your application with the Kit Provider. Weβll be using a React Vite app as an example.
In the example above, the application is wrapped with the Arweave Wallet Kit Provider, passing it a config
object as parameter with the desired wallet strategies and permissions based on the application requirements.
Once the provider is setup, you can either use the Wallet Kitβs functionality through its custom or .