WalletConnect React & React Native Hooks

Import hooks

In order to use the function below, you need to import the hooks for React or React native.

Import React Hooks

import { hooks } from '@paytweed/frontend-sdk-react'

WalletConnect hook returns the list of connections and methods to manage them:

const { connect, connections, disconnect } = hooks.useWalletConnect()


The proxy to the connect method in the JavaScript SDK


Automatically updated state of the getConnections method in the JavaScript SDK


The proxy to the disconnect method in the JavaScript SDK

Last updated