Skip to content

Help to get transaction hash Wagmi V2 #4136

Closed Answered by flymauntains
RedWilly asked this question in Q&A
Discussion options

You must be logged in to vote

Note my code

 await estimateGas(config, {
                ...account,
                data: encodedData,
                to: data.address,
            })

            const txHash = await writeContract(config, {
                ...account,
                ...data,
            })

            const txPendingData = waitForTransactionReceipt(config, {
                hash: txHash
            })
            toast.promise(txPendingData, {
                pending: "Waiting for pending... ",
            }, toastConfig);

If problem is continuous, contact me, I will solved asap.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RedWilly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants