[Archive] Multi chain EVM + Solana

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by TomTom on 6/3/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.


From Discord (Discord)

Hello, Im currently exploring multi-chain approach and have initialised the Web3 Model using the EVM, see the following pics.

am using the import { Web3Auth, Web3AuthOptions } from “@web3auth/modal”;

I have 2 functions in useEffect:


const handleEVM = async() =>{
      try{
    const web3AuthOptionsEVM = web3AuthOptions('aa36a7');
    const web3authEVM = new Web3Auth(web3AuthOptionsEVM);

const handleSolana = async() =>{
const web3AuthOptionsSolana = web3AuthOptions(‘2’);
const web3authSolana = new Web3Auth(web3AuthOptionsSolana);

Please check our multi chain example : web3auth-pnp-examples/web-no-modal-sdk/blockchain-connection-examples/multi-chain-no-modal-example at main · Web3Auth/web3auth-pnp-examples · GitHub