in

Connect my dapp to trust wallet and show user his eth, bsc, btc etc.. balances

Hi I want to connect my dapp to trust wallet and show user his eth, bsc, btc etc.. balances

​

I use this code to do so:

[https://github.com/Web3Modal/web3modal-vanilla-js-example](https://github.com/Web3Modal/web3modal-vanilla-js-example)

​

**But it only shows me eth balances. No btc or bsc addresses.**

​

**What I’ve tried**

**- changing wallet provider options**

>const providerOptions = {
>
>walletconnect: {
>
>package: WalletConnectProvider,
>
>options: {
>
>rpc: {
>
>56: “[https://bsc-dataseed.binance.org/](https://bsc-dataseed.binance.org/)”}
>
>}
>
>},
>
>// Get list of accounts of the connected wallet
>
>const accounts = await web3.eth.getAccounts();

​

But it always shows me only eth address

**what do I do?**

​

UPD: also you can working example i’ve build here: [https://coinsdragons.com/web3](https://coinsdragons.com/web3)

What do you think?

10 Points
Upvote Downvote

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Digital Dollars Are Already Here: How Crypto Innovators Are Modernizing Our Money | by Blockchain Association

Why Biden’s Infrastructure Plan is NOT a ticket to tendie town