简体   繁体   English

谁在智能合约交易发生时付款?

[英]Who pays when a smart contract transaction occurs?

We have a smart contract developed that we are planning to deploy on the ethereum blockchain.我们开发了一个智能合约,我们计划将其部署在以太坊区块链上。

Our question is我们的问题是

1) Who pays for each transaction made by the smart contract? 
2) Who gets the currency?
3) Who gets profited? 
4) Is there a way that developer(in this case is a group of us) always gets a part of eth after the transaction? 

1) Who pays for each transaction made by the smart contract? 1) 谁为智能合约的每笔交易付费?

When you deploy the contract, you pay for deployment.部署合约时,您需要为部署付费。 When people use your contract, they pay for using it.当人们使用你的合同时,他们会为使用它付费。

2) Who gets the currency? 2)谁得到货币?

The miners.矿工们。 They mine and take the fees of the transactions, which include the "gas" cost of executing your contract.他们开采并收取交易费用,其中包括执行合同的“gas”成本。

3) Who gets profited? 3)谁获利?

Look at answer 2.看答案2。

4) Is there a way that developer(in this case is a group of us) always gets a part of eth after the transaction? 4)有没有办法让开发者(在这种情况下是我们一群人)在交易后总是得到一部分eth?

No.不。

Who pays for each transaction made by the smart contract ?谁为智能合约的每笔交易买单?

Ans- For example, if we hold a smart contract which could be a program, if someone uses that program which consumes some gas from our account, the uses pays for the gas consumption to us with some eth. Ans- 例如,如果我们持有一个可以是程序的智能合约,如果有人使用该程序从我们的帐户中消耗一些gas,则使用者会用一些eth 向我们支付gas 消耗。 I,e User pays for the transaction made on our smart contract. I,e 用户为我们智能合约上的交易付费。

Who gets the currency ?谁得到货币? Who gets profited ?谁获利?

Ans - If you are the one who deployed the smart contract and created the block chain and if you had enough of ether for example 100, you assigned a miner to mine the block chain by setting the gaslimit. Ans - 如果您是部署智能合约并创建区块链的人,并且如果您有足够的以太币(例如 100),您可以通过设置 gaslimit 分配一名矿工来挖掘区块链。 He is paid for the work based on the formula ( gas consumption * gas price).他根据公式(gas消耗*gas价格)获得工作报酬。 If you have any difference ether left then it will be yours.如果你有任何不同的以太,那么它将是你的。

Both the account user and miner may get profit or sometimes only ether.账户用户和矿工都可能获得利润,有时也只有以太币。

Is there a way developer always gets a part of eth ?有没有办法让开发人员始终获得 eth 的一部分?

Ans - If developer himself deploys the smart contract in his own account ( public network) and if any transactions made on it, I will get profited and that's the only way. Ans - 如果开发者自己在自己的账户(公共网络)中部署智能合约,并且在其上进行任何交易,我就会获利,这是唯一的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM