简体   繁体   English

是否可以在以太坊上自定义令牌

[英]Is it possible to custom tokens on ethereum

My requirement is to create custom tokens, using smart contracts, based on the input data, that are locked forever ( non transferable ) 我的要求是使用智能合约根据输入数据创建自定义令牌,并将其永久锁定(不可转让)

Every request will create different tokens based on the input data 每个请求将基于输入数据创建不同的令牌

Of course it's possible. 当然可以。 Why wouldn't it be? 为什么不呢? You just need to restrict access to transfer and transferFrom so that they aren't available to the general public. 您只需要限制对transfertransferFrom访问,这样普通大众就无法使用它们。 You could not implement any transfer logic at all in these methods, but you run the risk of tokens being locked forever (unless you put the data storage into another contract), or restrict access to those methods with modifiers. 您根本无法在这些方法中实现任何传输逻辑,但是存在永久锁定令牌的风险(除非将数据存储放入另一个合同中),或者使用修饰符限制对这些方法的访问。

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

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