[英]What is the main difference between WriteSet, TransferSet and ContractResult in Ride4dApps?
In Ride4dApps, the callable function returns WriteSet, TransferSet or a ContractResult but I still do not get the main difference between them?在 Ride4dApps 中,可调用函数返回 WriteSet、TransferSet 或 ContractResult,但我仍然不明白它们之间的主要区别? and who pays fees for this kind of dApps?
谁为这种 dApp 支付费用?
The sender pays fees in WAVES(1 + 4*(the cost of each script involved)) to the miner of the invocation.发件人以 WAVES(1 + 4*(所涉及的每个脚本的成本)) 形式向调用的矿工支付费用。
Example:例子:
ContractResult(
WriteSet([DataEntry(currentKey, amount)]),
TransferSet([ContractTransfer(i.caller, amount, unit)])
)
Where:在哪里:
DataEntry (key : String, value : String | Binary | Integer | Boolean).
i.caller
is the caller address. i.caller
是来电地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.