This video explains how to do something like that using web3. Might wanna check it out.
It takes care of the wallet creation part, but if you want to fund the wallets, you're gonna need a source for the funds.
Do you want them to be funded in your local blockchain? If yes, you can simply configure hardhat to use ...
If your app is on React, you can use react-open-app to enable deep links. If not, you can still borrow its implementation to do it yourself as it's MIT licensed.
Also, Metamask Deeplinks is a good tool to get your deeplinks.
Seems I was doing similar tutorial, but received this error on different command
However, I just tried one more time, after checking other command, and error dissapeared :O
Maybe resetting contracts will work?
And after this command it shows smthng like this, taking ether from Truffle
if someone only send ERC-20 token to the address and no etherum, then how I'll get ethereum to pay as gas fee to transfer the received ERC-20 token to cold wallet
You buy ETH and deposit it on the address needing ETH.
means if 10000 users do the same thing at the same time, will not it create a problem ? or is there any better solution for this ?
payable is a function modifier means it checks if a certain condition is met before starting to execute a function.
the condition for a payable modifier is that the msg.value should not be null. means the transactions must contain some ether. any functions with the payable() as the modifier will only execute if the transaction has some ethers.
and for the ...
I found the solution at least for me. If you are using the old CDNs, please upgrade them to;