@tronweb3/tronwallet-adapter-walletconnect
This package provides an adapter to enable TRON DApps to connect to WalletConnect.
Usage
import { WalletConnectAdapter } from '@tronweb3/tronwallet-adapter-walletconnect';
const App = () => {
const adapters = useMemo(
() => [
new WalletConnectAdapter({
network: 'Nile',
options: {
relayUrl: 'wss://relay.walletconnect.com',
// example walletconnect app project ID
projectId: 'e899c82be21d4acca2c8aec45e893598',
metadata: {
name: 'Example App',
description: 'Example App',
url: 'https://yourdapp-url.com',
icons: ['https://yourdapp-url.com/icon.png'],
},
},
}),
],
[]
);
};
For more information about wallet adapter, please refer to @tronweb3/tronwallet-adapters
.