2 Noob questions: 1. what provider is used by w3mProvider? 2. how can I query public blockchain data before connecting? #3434
-
Hello! I am using web3modal to connect my user and using wagmi to interact with the blockchain. My connection looks sometthin like this (in nuxt 3): import { UseWagmiPlugin, configureChains, createConfig, mainnet, sepolia } from 'use-wagmi'
Interacting with the blockchain works, but only after I connect the user with his wallet. I want to query some blockchain smart contract data before the user connects already however. I have the feeling that the provider is only enabled after the user connects with the modal to his/her wallet. Is this correct? Is there a fallback provider that can be used before a connection? I simply want to query all the tokenURI of my NFT contract tokens, even before the user has connected... And two: can I use INFURA with the Web3Modal? What provider is it using now? Sorry, these questions might be very noobish. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
about INFURA
|
Beta Was this translation helpful? Give feedback.
-
Hi!
|
Beta Was this translation helpful? Give feedback.
Hi!
You can check the source code here. It's basically using WalletConnectConnector and InjectedConnector
I would suggest going through the Wagmi Core documentation, you have there functions to query blockchain and user's data. About providers configuration you can check here and the second link shared above :)