Getting Provider of the wallet to trigger the contract functions #1138
-
Below I have provided the code that is working up till now to get a connection from the metamask to my sample application, Now I am struggling to get the provider of the wallet to trigger and use the smart contract functions. ` useWalletConnect, } from "@walletconnect/react-native-dapp"; import AsyncStorage from "@react-native-async-storage/async-storage"; function SampleWCConnect() { const connector = useWalletConnect(); const connectWallet = React.useCallback(() => {
}, [connector]); //const connectWallet =async()=>{
//} const killSession = React.useCallback(async () => {
}, [connector]); async function getETH() {
} return (
); } export default function WallectConnectMain() { return (
); } ezgif.com-gif-maker.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@hackyguru can you please help me in this i want to know now how can i get the provider so i can call the contract functions. |
Beta Was this translation helpful? Give feedback.
-
This could be useful, Enabling the provider to pop-up QR modal
Disconnecting the provider
Sending JSON RPC requests
You can connect to a contract and use its functions using Ethers/Web3.js. |
Beta Was this translation helpful? Give feedback.
This could be useful,
Enabling the provider to pop-up QR modal
Disconnecting the provider
Sending JSON RPC requests
You can connect to a contract and use its functions using Ethers/Web3.js.