@0xsequence/cross-app-embedded-wallet-connector
v0.0.3
Published
Wagmi connector for Sequence cross app embedded wallets
Downloads
15
Readme
Sequence Cross App Embedded Wallet Connector
Wagmi connector for Sequence cross app embedded wallets
Install
pnpm install @0xsequence/cross-app-embedded-wallet-connector
Peer Dependencies
"@0xsequence/network": ">= 2.0.0",
"ethers": ">= 6.13.0",
"viem": ">= 2.0.0",
"wagmi": ">= 2.0.0"
Example Usage
import { http, createConfig } from "wagmi";
import { arbitrumNova, arbitrumSepolia } from "wagmi/chains";
import { sequenceCrossAppEmbeddedWallet } from "@0xsequence/cross-app-embedded-wallet-connector";
const connector = sequenceCrossAppEmbeddedWallet({
projectAccessKey: "...", // Your project access key from sequence.build
walletUrl: "...", // URL of the cross app embedded wallet
chainId: 42170, // This is the starting chain id, chain can be switched related to transports in create config (see createConfig below)
});
export const config = createConfig({
chains: [arbitrumNova, arbitrumSepolia],
connectors: [connector],
transports: {
[arbitrumNova.id]: http(),
[arbitrumSepolia.id]: http(),
},
});