question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FEATURE REQUEST: Send Transaction Button

See original GitHub issue

I think it would be awesome if there was a component that looks like this:

import {sendTransactionButton} from "web3uikit"
.
.
.
<sendTransactionButton runContractFunction={doTx} useNotification={true}/>

And it take a runContractFunction object from the react-moralis useWeb3Contract as an input parameter, and then does the following:

  1. Has a spin & disabled animation when metamask is poped up
  2. Has a spin animation as the transaction is going through
  3. stops spinning when the transition has 1 block confirmation, and optionally a useNotification pops up

I think this would save lot of development time, and would be so sick. We’d have like a useState and useEffect in this component tracking the status of the transaction.

Let me know what you think.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
AbhinavMVcommented, Aug 14, 2022

Did a bit of research and looks like it does not need the server. Will make the necessary changes and create a PR soon meanwhile you can use the component with the server 😄 Thanks a lot @PatrickAlphaC 🙌🏻

0reactions
PatrickAlphaCcommented, Aug 15, 2022

Looking forward to the update. This will be really helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sending Transactions - MetaMask Docs
In MetaMask, using the ethereum.request method directly, sending a transaction will involve composing an options object like this:.
Read more >
dApp cannot know about txs if MetaMask "speed up" button used
My suggestion with have a PromiEvent.on("replace") that emits (oldHash, newHash, newTxData) event for "replacement transaction". It will make ...
Read more >
Feature Requests - Qube Money Support
Feature Requests. New post. Follow Followed by 2 people ... Edit Scheduled Recurring Transactions ... Add a login button to the top of...
Read more >
Submitting Feature Requests (Ideas) - BlazeMeter Docs
Start by clicking on the new HELP CENTER tab and then clicking the Feature Requests button: help-sidebar-tab-unified-arrow.png.
Read more >
The Seal of Approval: Know What You're Consenting To With ...
The public key is used to encrypt the transaction. ... With this feature, MetaMask keeps you in control of your token approvals –...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found