Hello everyone. I have a button on my website. I want the transaction editing window to open when the button is clicked, not a window to confirm the transaction. The user will be able to independently enter the token and the amount of the token that he wants to send. Is it possible, and if so, how to do it? I didn't find any information in the documentation. The screenshot shows what I mean

Jan 18, 2022, 5:05 PM
Where did u find this?
Jan 18, 2022, 5:06 PM
you want to open metamask on button click?
Jan 18, 2022, 5:06 PM
yes, but I want to open this exact window
Jan 18, 2022, 5:07 PM
which site shows this?
Jan 18, 2022, 5:09 PM
You can send tokens via metamask, for this you need to select tokens, click the "Send" button, select the recipient of the token. A window will open, as in my screenshot
Jan 18, 2022, 5:10 PM
have to look at metamask doc if it exists
Jan 18, 2022, 5:10 PM
metamax?
Jan 18, 2022, 5:10 PM
sorry😁
edited message
Jan 18, 2022, 5:11 PM
I don't think there's an api exist for that.
Jan 18, 2022, 5:11 PM
Too bad, but it was worth asking. Thank you all very much😊
Jan 18, 2022, 5:12 PM
It's not there to avoid accidental loss
Does web3.getPastEvents() also returns the internal events of the contracts or only
those events which was explicitely emitted?
Let's say a Deposit() function which emits UserDeposited()
It also emits ERC20 Token_Transfer but it's not part of the Deposit()
Jan 18, 2022, 5:15 PM
To send tokens, the user needs to sign the transaction, which means the tokens won't be stolen
Or is that not true?
Jan 18, 2022, 5:17 PM
The tokens won't be stolen but lost if the contract doesn't support that token.
Jan 18, 2022, 5:18 PM
Ah, I see
Jan 18, 2022, 5:19 PM
Mycontract.myfunction().sendTransaction({from: web3.eth.accounts[0], gas: 3000000, value: 100}, function(err, res){});
why am i getting an error here
since Mycontract.myfunction does work
then if i do the whole command it tells me this isn't a function
Jan 18, 2022, 6:34 PM

© 2024 Draquery.com All rights reserved.