Can a contract on Hedera Hashgraph be written to allow the contract owner to pay gas fees for Token Association?

huangapple go评论64阅读模式
英文:

Can a contract on Hedera Hashgraph be written to allow the contract owner to pay gas fees for Token Association?

问题

我正在进行一个项目,我希望在Hedera Hashgraph网络上创建一个智能合约,并对关联进行操作。我有一个特定的需求,不确定是否可能,希望您的指导。

我的目标是创建一个合同,其中合同所有者可以支付代币关联交易的燃气费用。这样,与代币关联的用户就不必担心账户中是否有足够的HBAR来支付燃气费用。

在Hedera Hashgraph网络上是否可能实现这一点?如果可能的话,您能否提供一些高层次的指导或示例,说明如何实现这一目标?

英文:

I am working on a project where I'd like to create a smart contract on the Hedera Hashgraph network and do stuff with associations. I have a specific requirement that I'm not sure is possible, and I would appreciate your guidance on this.

My goal is to create a contract where the contract owner can pay the gas fees for Token Association transactions. This way, users associating with the token wouldn't need to worry about having HBAR in their accounts to cover the gas fees.

Is this possible on the Hedera Hashgraph network? If so, could you provide some high-level guidance or examples of how this could be achieved?

答案1

得分: 0

很抱歉,智能合约或账户目前无法代付另一个账户的代币关联费。但如果您需要这一功能,您可以创建一个 Hedera 改进提案。https://hips.hedera.com/all.html

英文:

Unfortunately it's not possible for a smart contract or an account to pay token association fee for another account at the moment. But if you would like that feature, you can create a Hedera Improvement Proposal. https://hips.hedera.com/all.html

huangapple
  • 本文由 发表于 2023年3月20日 22:32:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/75791600.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定