Send multiple ERC20 tokens and then deposit all of them to a contract as a single tx #4338
Unanswered
moneyDev1111
asked this question in
Q&A
Replies: 1 comment 4 replies
-
With EOAs, unfortunately, you can't batch transactions right now. Otherwise, you would not have the terrible approve-deposit UX on apps like uniswap. (tho smart wallets have the potential to get over this but most users on EOA). But what you can consider is, that since your app is testnet you can have a server that funds the user with tokens so the user does not have to make transactions. Actually, a really cool faucet that you can fork is https://github.com/Anish-Agnihotri/MultiFaucet deployed at https://faucet.paradigm.xyz. |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, is it possible to do it? Could you tell how?....
I have 4 ERC-20 tokens and I need to send them to the user from the 'faucet' which is not really a faucet but whatever, and then from the user account deposit it to the contract as a user's balance.
so for a regular separate txs it could look like this, but it's not user friendly at all to sign like 8 or even 12 txs before being able to do smth with the app....
thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions