You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to transfer an ERC20 token from accountA to accountB but only accountC has ETH (for gas fees).
Rather than transferring ETH from accountC to accountA first.
Can I call contract.transfer with accountA as the signer but send the transaction to the network with accountC?
The text was updated successfully, but these errors were encountered:
Just wanted to make it clear that there is no role of accountC in the process of sending the transaction to the network.
Possible solutions
You can extend ERC20 contract, by adding a method called transferBySig that takes receiver, amount and signature. Recently there was interest about the same idea in ethereum/EIPs#3055. But this requires your contract to be deployed again.
I think I have read some proposals to get this done natively in ethereum so that no extra functionality is required in the contracts (each function would need a functionalityBySig counter part). But they definitely this feature isn't up right now. I don't remember the EIP number, so I don't know what is the community consensus on this idea.
ricmoo
changed the title
Call ERC Contract Transfer Method with ETH From Another Account
Call ERC transfer with ETH from another account (i.e. meta-transactions)
Feb 5, 2021
I want to transfer an ERC20 token from accountA to accountB but only accountC has ETH (for gas fees).
Rather than transferring ETH from accountC to accountA first.
Can I call
contract.transfer
with accountA as the signer but send the transaction to the network with accountC?The text was updated successfully, but these errors were encountered: