@privy-io/cross-app-connect
SDK.
Integrating apps do not need to use Privy themselves to integrate cross-app wallets; instead, they can import a Privy cross-app connector directly from the SDK to configure with their wallet connector library. Simply follow the instructions below to get set up!
privy-io/cross-app-connect-demo
repo for an example set up.@privy-io/cross-app-connect
SDK and its peer dependencies:
toPrivyWallet
connector function from @privy-io/cross-app-connect/rainbow-kit
:
toPrivyWallet
method to create a wallet connector. The function takes id
, name
, and iconUrl
(described below) and returns a connector that RainbowKit will use to connect to the provider wallet.
connectorsForWallets
function like so:
config
will be passed to the WagmiProvider
in the next step.
wagmi
, QueryClient
, and RainbowKit
providers. Pass the configuration you created in step 2 to the wagmi
provider.
ConnectButton
ConnectButton
and use to prompt users to connect to their provider Privy wallet.