Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hyperledger Cookbook

You're reading from  Hyperledger Cookbook

Product type Book
Published in Apr 2019
Publisher Packt
ISBN-13 9781789534887
Pages 310 pages
Edition 1st Edition
Languages
Concepts
Authors (3):
Xun (Brian) Wu Xun (Brian) Wu
Profile icon Xun (Brian) Wu
Chuanfeng Zhang Chuanfeng Zhang
Profile icon Chuanfeng Zhang
Zhibin (Andrew) Zhang Zhibin (Andrew) Zhang
Profile icon Zhibin (Andrew) Zhang
View More author details
Toc

Table of Contents (12) Chapters close

Preface 1. Working with Hyperledger Fabric 2. Implementing Hyperledger Fabric 3. Modeling a Business Network Using Hyperledger Composer 4. Integrating Hyperledger Fabric with Explorer 5. Working with Hyperledger Sawtooth 6. Operating an Ethereum Smart Contract with Hyperledger Burrow 7. Working with Hyperledger Iroha 8. Exploring the CLI with Hyperledger Indy 9. Hyperledger Blockchain Scalability and Security 10. Hyperledger Blockchain Ecosystem 11. Other Books You May Enjoy

Deploying and calling Ethereum contracts with the Seth CLI and RPC

In this recipe, we will compile, deploy, and call Ethereum smart contracts on the Sawtooth platform with the Seth client CLI and the Seth-RPC.

How to do it...

  1. Compile the Solidity contract. To deploy a contract, the Seth client expects the contract to be passed in the form of a hex-encoded byte array. The Solidity compiler, solc, can be used to generate the byte codes. The command to generate the hex-encoded bytes for a contract is as follows:
ubuntu@ip-172-31-90-67:~/seth/example$ solc --bin SethContract.sol
======= SethContract.sol:SethContract =======
Binary:
608060405234801561001057600080fd5b5033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000808...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}