<p>A smart contract can only initiate a transaction when it receives a transaction from either another contract or a user. Thus, all transactions must originate from some user transaction, and it is this transaction that must pay for fees. The amount of fees can be limited by setting the gas limit on that transaction to prevent a malicious contract from consuming a horrendous amount of fees.</p>

<p>Also, all transactions that are the result of a specific user transaction will occur before any other user transactions (and it's subsequent contract transactions) are processed.</p>

CC BY-SA 3.0
2015-06-17T21:31:31.443Z
2015-06-17T21:31:31.443Z
Thomas Galvin
<p>Usually there is a small transaction fee on any bitcoin transaction. its 0.0002 i think. If the contract says that there is a additional fee for that contract then i would assume you would have both the transaction fee and the contract fee.</p>

CC BY-SA 3.0
2015-06-17T20:44:06.340Z
2015-06-17T20:44:06.340Z
Tox
<p>I am wondering who pays the fees for transactions initiated by a smart contract in Ethereum?</p>

<p>For example, if I have a contract that simply forwards any payment made into it to someone else, does the contract have to pay its own transaction fees for payments moving out, or does the transaction that initiate the contract have to pay the fees for both its transaction and the resulting transaction coming from the contract?</p>

<transaction-fees><ethereum><smartcontracts>
Who pays the fees for transactions initiated by a smart contract in Ethereum?
ThePiachu
# Who pays the fees for transactions initiated by a smart contract in Ethereum?

(Asked by: username_0 on 2015-06-17)

I am wondering who pays the fees for transactions initiated by a smart contract in Ethereum?

For example, if I have a contract that simply forwards any payment made into it to someone else, does the contract have to pay its own transaction fees for payments moving out, or does the transaction that initiate the contract have to pay the fees for both its transaction and the resulting transaction coming from the contract?

**Tags:** transaction-fees, ethereum, smartcontracts


---

## 2 answers

### Answer by username_1 on 2015-06-17. Score: 6

A smart contract can only initiate a transaction when it receives a transaction from either another contract or a user. Thus, all transactions must originate from some user transaction, and it is this transaction that must pay for fees. The amount of fees can be limited by setting the gas limit on that transaction to prevent a malicious contract from consuming a horrendous amount of fees.

Also, all transactions that are the result of a specific user transaction will occur before any other user transactions (and it's subsequent contract transactions) are processed.


---

### Answer by username_2 on 2015-06-17. Score: -1

Usually there is a small transaction fee on any bitcoin transaction. its 0.0002 i think. If the contract says that there is a additional fee for that contract then i would assume you would have both the transaction fee and the contract fee.


---

