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

How to do it…

  1. Every DApp is authenticated and authorized by the user's address. The address is the key to accessing a decentralized application built on Ethereum. 
  2. Consider the example of CryptoKitties, a popular crypto collectable game built on Ethereum. The application identifies the user using their Ethereum address. A user can purchase kitties using their address and the ownership of the asset will be transferred to them.
  3. The application lists all the kitties owned by the currently logged in address on a different page. You can easily track the assets using the address:
mapping(address => uint[]) kitties;function getKitties(address _owner) returns(uint[]) {    return kitties[_owner];}
  1. Any tasks involving the kitties can only be performed ...
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