WalletConnect Transaction won't return a response


I am using WalletConnect as a wallet and cannot seem to get a transaction response. I am currently using react and the response is triggered upon a successful MetaMask transaction but not for WalletConnect using the same code:

const web3 = (ifWalletConnect ? await Moralis.enableWeb3({ provider: 'walletconnect' }) : new Web3(window.ethereum))
const CollectionContract = new web3.eth.Contract(ABI, contractAddress);

        from: account,
        value: valueAmount,
      .then((txHash) => {
      .catch((error) => {

So everything works as it should but I don’t get anything returned after a successful transaction, only for walletconnect.

1 Like

You can try to use events for walletconnect.
This may help you: Moralis.transfer doesn't return receipt WalletConnect [SOLVED]

1 Like

I can’t seem to get this to work with executeFunction.

 const runFunction = async() => {
    await Moralis.enableWeb3({ provider: 'walletconnect' })

    const txOptions = {
      contractAddress: myContractAddress,
      msgValue: Moralis.Units.ETH("0.5"),
      functionName: "mintToken",
      abi: ABI,
      params: {
        numberOfTokens: mintAmount
      awaitReceipt: false // should be switched to false
    const tx = await Moralis.executeFunction(txOptions);

    tx.on("transactionHash", (hash) => { console.log(hash) })
      .on("receipt", (receipt) => { console.log(receipt) })
      .on("confirmation", (confirmationNumber, receipt) => { console.log(confirmationNumber, receipt) })
      .on("error", (error) => { console.log(error) });

1 Like

I think that we have to add support for events in Moralis.executeFunction in order to make that work, we will get back.

1 Like

Sounds good. Thank you!