FEATURE REQUEST: Send Transaction Button
See original GitHub issueI 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:
- Has a spin & disabled animation when metamask is poped up
- Has a spin animation as the transaction is going through
- 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:
- Created a year ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 🙌🏻
Looking forward to the update. This will be really helpful.