@tronweb3/tronwallet-adapter-walletconnect
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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.

Install

npm i @tronweb3/tronwallet-adapter-walletconnect

DownloadsWeekly Downloads

202

Version

1.0.2

License

MIT

Unpacked Size

41.4 kB

Total Files

19

Last publish

Collaborators

  • cathytan
  • troncore
  • tron-dev