Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

There's more…

In addition to the minting and burning functionality, you can think of any useful feature to include in the token contract. The following contracts are some of the examples you can include in your token:

  1. You can add a functionality to pause the token transfer for a certain period. Use a state variable for the status and modifier to include the restriction in the transfer function.
  2. The total mintable value can be restricted with a cap. This will check for the token cap for each minting and will reject it if it exceeds the limit.
  3. Tokens can be transferred with a time lock on them. This will restrict the receiver to using those tokens only after a set time period.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content