Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: cryptosyor on May 26, 2021, 08:48:52 PM



Title: How to pay transaction fee from another account in ethereum?
Post by: cryptosyor on May 26, 2021, 08:48:52 PM
Hi! I need to call a function from one address but pay a fee from another.
How to pay transaction fee from another account in ethereum?


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: ryzaadit on May 26, 2021, 09:02:34 PM
No, the fee always paid by the address account you are use for the transaction.

If using "smart contract" you can only trigger the address you are set up to create the transaction, in the end gass fee need to paid from the account who spending the transaction.

There is no way you can paid with third account(other account).


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: cryptosyor on May 26, 2021, 09:12:49 PM
No, the fee always paid by the address account you are use for the transaction.

If using "smart contract" you can only trigger the address you are set up to create the transaction, in the end gass fee need to paid from the account who spending the transaction.

There is no way you can paid with third account(other account).

yes, this is what I need, from one address to create a transaction and pay gas, but so that the contract would perform actions for another account, as if this another address had called it.

P.S. these addresses are mine and I have private keys)


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: Cappex on May 26, 2021, 09:13:00 PM
Hi! I need to call a function from one address but pay a fee from another.
How to pay transaction fee from another account in ethereum?

you can't do it, otherwise everyone would spend money from other wallets... transfer ETH to the wallet where you have the tokens to move, check the cost of gas.


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: cryptosyor on May 26, 2021, 09:23:18 PM
you can't do it, otherwise everyone would spend money from other wallets... transfer ETH to the wallet where you have the tokens to move, check the cost of gas.

If you have a private keys, is it not possible to sign and send a function call on behalf of a different address?


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: WalkerIVIV on May 26, 2021, 11:19:56 PM
Sorry mate but it will not be possible. The possible way for you to send your ethereum to the address that will be used to call a function. The function will only work with the address that being used to call it.
There's no way for you to do that other than it.


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: OcTradism on May 27, 2021, 03:24:24 AM
You can not. You will have to send your ETH to that wallet and replace or cancel your transaction that is stucked, pending, etc. This tutorial can help you if you use Metamask, MEW, MyCrypto wallets.

[GUIDE] How to cancel or replace an ETH transaction (Metamask, MEW, MyCrypto) (https://bitcointalk.org/index.php?topic=5277890.msg55253979#msg55253979)

Check gas price on Ethereum network before you set Gas price for your transactions
ETH/ERC20 - Check and select good Gas price (https://bitcointalk.org/index.php?topic=5261480.msg54771880#msg54771880)
Gas now is very helpful, informative and the Average GasPrice with Timezone Table is great.
GAS NOW - New Price Gas Forecast Service (https://bitcointalk.org/index.php?topic=5278723.msg55278580#msg55278580)


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: semobo on May 27, 2021, 06:55:32 AM
Hi! I need to call a function from one address but pay a fee from another.
How to pay transaction fee from another account in ethereum?
Its not possible, Bitcoin wallets do have such a feature but I don't think it is available in any way with ethereum wallets and contract addresses.


Title: Re: How to pay transaction fee from another account in ethereum?
Post by: bittick on May 27, 2021, 07:24:42 AM
function from an address? did you mean function from a smart contract address? if yes then that's not possible since the account you used to send a transaction will always pay for gas but if the function itself is just a constant, pure or view function then it just requires you to make a call and no gas will be consumed.