WalletConnect

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()

Connect

The proxy to the connect method in the JavaScript SDK


Connections

Automatically updated state of the getConnections method in the JavaScript SDK


Disconnect

The proxy to the disconnect method in the JavaScript SDK

Last updated