hey guys
Is there any way to sign a transaction with a signer, but broadcast the transaction from another account who will pays the fee?
Nov 25, 2023, 3:20 PM
eip712
Nov 25, 2023, 11:42 PM
As i know, using eip712 is possible on permit functuons,
but i need it for usdt
but i need it for usdt
Nov 26, 2023, 6:34 AM
will work with custom contract but you also have to give allowance to use your usdt to that contract
Nov 26, 2023, 6:51 AM
Can you explain more plz?
Nov 26, 2023, 6:53 AM
well this is kinda difficult especislly in terms of debugging
- owner (wallet 1) signs payload and passes payload and signature to sender (wallet 2)
- owner approves custom contract (СС) to spend usdt
- sender sends payload and signature to CC
- CC recovers signer, and checks if it matched owner
- CC executes token transfer from owner to sender
- owner (wallet 1) signs payload and passes payload and signature to sender (wallet 2)
- owner approves custom contract (СС) to spend usdt
- sender sends payload and signature to CC
- CC recovers signer, and checks if it matched owner
- CC executes token transfer from owner to sender
Nov 26, 2023, 7:00 AM
Thanks a lot
Do you know any sample that implemented this pattern?
Do you know any sample that implemented this pattern?
Nov 26, 2023, 8:40 AM
We have an educational project from our org
https://github.com/Gemunion/contracts-edu/
try dropbox it is pretty close to what you need
https://github.com/Gemunion/contracts-edu/
try dropbox it is pretty close to what you need
Nov 26, 2023, 9:30 AM
I will check it today
Thanks a lot
Thanks a lot
It gives 404 error
Nov 26, 2023, 10:06 AM
try again
Nov 26, 2023, 10:07 AM
Got okay
Thanks
Thanks
So in this repo that is possible for someone who does not have gas in his wallet, sign and send the transaction, and the gas fee get deducted from another account?
Nov 26, 2023, 10:59 AM
nope, only sign
Nov 26, 2023, 12:15 PM