Wallet Connect (v2) standalone
#
Installation#
Obtain Project IDHead over to WalletConnect Cloud to sign in or sign up. Create (or use an existing) project and copy its associated project id. We will need this in a later step.
#
Install Packages​Install the WalletConnect client package.
#
Import#
TypescriptAll SDKs are written in and support TypeScript. Following type packages are provided for user convenience
@walletconnect/types
@walletconnect/jsonrpc-types
#
SetupThis library is compatible with NodeJS, browsers and React-Native applications (NodeJS modules require polyfills for React-Native).
#
Create a Session- Initiate your WalletConnect client with the relay server, using your Project ID.
- Add listeners for desired SignClient events.
- Connect the application and specify session permissions.
#
Usage#
Making Requests​Once the session has been established successfully, you can start making JSON-RPC requests to be approved and signed by the wallet: