Skip to main content

New answers tagged

0 votes
Accepted

Uncaught (in promise) error when interacting with a smart contract

You should use waitForTransactionReceipt. In your code corresponding to createProposalInteraction, replace: const data = await waitForTransaction({ hash, }); return data; With: const ...
SYED ASAD KAZMI's user avatar
0 votes

Getting 403 forbidden error when useWatchContractEvent hook is used in next, wagmi, react

You need to use some third-party RPC provider (like Alchemy or Infura) url in the transports object of your wagmi.ts file: Using Alchemy RPC Provider URL transports: { [optimismSepolia.id]: http(`...
SYED ASAD KAZMI's user avatar
1 vote
Accepted

Read data from multiple contracts using wagmi and react

As Patrick Collins suggested in the comment, multi-call is the way to go! Here's a code snippet from my working solution: import { useEffect, useState } from "react"; import { ResABI, ...
stuckoverflow's user avatar

Top 50 recent answers are included