Linked Questions

23
votes
5answers
16k views

Paying a transaction fee with an ERC20 token

As far as I understand, one of the ERC20 token's features is that you can pay a transaction fee with it. In other words, you can send them without having Ether. I transferred REP tokens to the ...
13
votes
2answers
4k views

Do users of ERC20 coins need to hold Ether?

Suppose there exists Fancycoin, an ERC20 altcoin which has some functionality implemented by the EVM. It does some nontrivial things that take up gas. According to my understanding, I can receive ...
10
votes
4answers
3k views

How to make someone else pay for Gas?

My understanding is that msg.sender pays the gas fee. Can a smart contract be written in such a way that it's always the contract owner who pay the fees? As an example, in an ERC20 token when someone ...
7
votes
2answers
3k views

How to manipulate data in a Solidity smart contract?

I have a smart contract with some members which should get modified on certain events. For simplicity, let's imagine we have a greeter contract. If I call greeter.greet() in the JavaScript console, ...
3
votes
1answer
94 views

Can I buy the gas within the contract code? [duplicate]

The contract contains ether. Can I buy the gas within the contract code?
3
votes
1answer
76 views

Is there any case where a contract will use gas?

I was wondering, why and when is it important to fund your contract with ether? Is this really only ever if you want to send ether from your contract? Does a contract ever need to pay gas for ...
3
votes
0answers
216 views

How to send custom tokens without ether? [duplicate]

I would like my customers to send a custom token without thinking of a certain amount of ether for gas. So I've tried the standard-token at ethereum.org. There's a way described to auto refill the ...
2
votes
1answer
878 views

Can transaction fee be paid by 3rd account? [duplicate]

I have a scenario like that: I have a "Main" account with ethereum client: And there are other two accounts, lets call them: "A" and "B" "A" account will send to "B" account some token (ecr20 token)...
2
votes
2answers
891 views

How do I pay gas on behalf of users?

I have a mobile app that has users who generate transactions. Basically if a user wants to turn on their TV, they press a button in the app, and that should 1) Run code in a smart contract to verify ...
2
votes
1answer
107 views

If a smart contract automatic transfer its ether to it's benificiary accounts then who will pay gas price (transaction cost) for this transfer?

I am writing a smart contract of a charity.It pay all the money to it's subscribers in every week. I am puzzled in such point that who will pay the transaction cost of transfer? When I am ...
2
votes
1answer
280 views

Possible to use gas from the balance of a contract?

When calling an external contract function from within a contract, does the gas come from the originating transaction? If so, is there a way to use gas from the contract's balance? example call: ...
2
votes
0answers
473 views

What is the simplest way to allow a contract to pay for gas?

EIP86 and abstraction discussion is exciting for the future, but what are the things we could change first, to allow a contract to pay for gas? For example, for the withdraw transactions on BabyZoE, ...
2
votes
0answers
57 views

Can a contract pay its own fees? [duplicate]

so I've been working on ethereum for the past few weeks, mainly deploying and interacting with contracts but something i noticed is the high gas usage of using the tokens over time, so i was wondering ...
1
vote
1answer
293 views

Work around for getting third party contract to pay eth for transactions?

I'd like to find a way for an address to trigger a transaction without paying the cost of eth. I know that two years ago there was some talk about making this a feature of ethereum. Does anyone know ...
1
vote
0answers
23 views

Can contract use its own ethers as a gas when calling other contract? [duplicate]

Can rich contract (that holds some ethers) use them as a gas when it would like to call other contract? http://solidity.readthedocs.io/en/latest/control-structures.html gives an example of feed.info....

15 30 50 per page