Skip to main content
After sending a transaction, you need to monitor its status and retrieve the receipt to confirm its execution.

Setup EVM Libraries First

Wagmi is not available on React Native. Use Ethers.js or Viem for EVM operations.

Get Transaction Receipt

import { ethers } from "ethers";

async function getTransactionReceipt(
  provider: ethers.Provider,
  txHash: string
) {
  const receipt = await provider.getTransactionReceipt(txHash);
  console.log("Transaction Receipt:", receipt);
  return receipt;
}

async function waitForTransaction(provider: ethers.Provider, txHash: string) {
  const receipt = await provider.waitForTransaction(txHash);
  console.log("Transaction Confirmed:", receipt);
  return receipt;
}

Next Steps

Send Tokens

Execute Transactions

Watch Events