Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Transferring an asset

Nodes can use transactions to perform operations on NEO assets. The transactions are created by the node using its private key, which is situated in the wallet. The user can perform any operation on the asset once the wallet is opened. A send command in neo-python transfers the asset by taking the asset ID, the recipient address, and the amount. The send command creates a transaction and relays it to the network so that it is included in the blockchain:

send NEO AZ81H31DMWzbSnFDLFkzh9vHwaDLayV7fU 100 
[Password]> *** 
Relayed Tx: 53b72dbce63a28a01432c1ddcc82aed8c28fb1fa338cab812c979 d56cc8e4410 

The created transaction is a ContractTransaction, and the details show that it houses vout and vin fields, whose functions are ...

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

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content