@neowalletconnect/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.3.2-rc.3 • Public • Published

WalletConnect SDK

WalletConnect SDK

For more details, read the documentation

Example

import WalletConnect from "@neowalletconnect/sdk";

//  Create WalletConnect SDK instance
const wc = new WalletConnect();

//  Connect session (triggers QR Code modal)
const connector = await wc.connect();

//  Get your desired provider

const web3Provider = await wc.getWeb3Provider({
  infuraId: "<INSERT_INFURA_APP_ID>",
});

const channelProvider = await wc.getChannelProvider();

const starkwareProvider = await wc.getStarkwareProvider({
  contractAddress: "<INSERT_CONTRACT_ADDRESS>",
});

const threeIdProvider = await wc.getThreeIdProvider();

Package Sidebar

Install

npm i @neowalletconnect/sdk

Weekly Downloads

1

Version

1.3.2-rc.3

License

LGPL-3.0

Unpacked Size

2.23 MB

Total Files

8

Last publish

Collaborators

  • liuqiang1357