https://github.com/0xsequence/cross-app-embedded-wallet-connector
wagmi connector for cross app embedded wallet
https://github.com/0xsequence/cross-app-embedded-wallet-connector
Last synced: 11 months ago
JSON representation
wagmi connector for cross app embedded wallet
- Host: GitHub
- URL: https://github.com/0xsequence/cross-app-embedded-wallet-connector
- Owner: 0xsequence
- Created: 2024-10-15T14:54:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-23T12:04:32.000Z (over 1 year ago)
- Last Synced: 2025-05-27T11:19:58.938Z (about 1 year ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sequence Cross App Embedded Wallet Connector
Wagmi connector for Sequence cross app embedded wallets
Wallet repository: [0xsequence/cross-app-embedded-wallet](https://github.com/0xsequence/cross-app-embedded-wallet)
## Installation
Install the connector along with its peer dependencies:
```shell
pnpm install @0xsequence/cross-app-embedded-wallet-connector @0xsequence/network@^2.0.0 ethers@^6.13.0 viem@^2.0.0 wagmi@^2.0.0
```
## Example Usage
```ts
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: arbitrumNova.id, // 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(),
},
});
```