Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Wallet Connect #35

Closed
Tracked by #13
manuelbarbas opened this issue Nov 24, 2023 · 1 comment
Closed
Tracked by #13

Using Wallet Connect #35

manuelbarbas opened this issue Nov 24, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@manuelbarbas
Copy link
Collaborator

manuelbarbas commented Nov 24, 2023

Wallet Connect

The Wallet Connect is an open source protocol to link dApps to mobile wallets using deep linking, and allows you to integrate your dApp with SKALE.

For more information and support, see https://docs.walletconnect.com/getting-started

Install NPM Packages

npm install --save web3 @walletconnect/web3-provider

Example Code

import WalletConnectProvider from "@walletconnect/web3-provider";
import Web3 from 'web3';


// Your setup information
const endpoint = 'https://your.skale.endpoint';             // your SKALE Chain endpoint
const ethereumEndpoint = 'https://your.ethereum.endpoint'   // your Ethereum endpoint
const skaleChainId = 123456                                 // chainId of your SKALE Chain

const provider = new WalletConnectProvider({
    rpc: {
      skaleChainId: endpoint,
      4: ethereumEndpoint
    }
  });
  await provider.enable();
  const web3 = new Web3(provider);

Example Sandbox

https://codesandbox.io/s/wallet-connect-wallet-integration-skale-dev-docs-forked-5xq08

@manuelbarbas
Copy link
Collaborator Author

What is: Wallet
Language: Javascript, Typescript, Flutter, Swift, Kotlin
Target: Web, Mobile

@manuelbarbas manuelbarbas added the documentation Improvements or additions to documentation label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant