loader till metamask tranaction finalized after confirming transaction on wallet using wagmi hooks #4167
Closed
abhi8960git
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Not sure what you code looks like, but you should be able to use import { useWriteContract } from 'wagmi'
const { isPending, writeContract } = useWriteContract()
<button
disabled={isPending}
onClick={() => writeContract(...)}
>
{isPending ? 'Write' : 'Check Wallet'}
</button> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i tried to use wagmi hooks such that when i click on a write fn using wagmi hooks it will popup metamask and i will confirm transaction , but i want to add loader in ui till the transaction fully finalized , but i am not able to do that using wagmi hooks ??
is it possible with wagmi hooks
Beta Was this translation helpful? Give feedback.
All reactions