Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

269
Vistas
How to limit WalletConnect to only connect to Binance Smart Chain?

I am trying to create a Dapp which works on Binance Smart Chain only. I have used walletConnect CDN:

<script src="https://cdn.jsdelivr.net/npm/@walletconnect/web3-provider@1.7.8/dist/umd/index.min.js"></script> 

In the RPC section I have only used the rpc for binance smart chain like the following:

 function getProvider() {
    // const provider = new WalletConnectProvider.default({
    //   infuraId: "27e484dcd9e3efcfd25a83a78777cdf1",
    // });

    var provider = new WalletConnectProvider.default({
      rpc: {
        56: "https://bsc-dataseed.binance.org",
      },
      // bridge: "https://bridge.walletconnect.org",
    });

    return provider;
  }

I am trying to connect Trust Wallet to my dapp but it shows Ethereum Mainnet only. I can provide the complete code as well (its a very simple html js site at this moment). Can someone please tell me how do I limit it to only BSC? I am new to web3 world, I will highly appreciate the help from the community. Thanks

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda