useDApp
useDApp copied to clipboard
How to change readOnlyChainId programmatically?
Describe
In the example of Reading without a browser wallet, we set readOnlyChainId
to Mainnet.chainId
to read the data on Mainnet without activation required. How if I have a button to switch to Goerli
? Is there a way to allow setting the readOnlyChainId
property programmatically in this case to read the data on Goerli testnet without activation required?