SlideShare a Scribd company logo
How do transactions work?
Pavel Kravchenko
Lecture 3
Plan
Terms
What is transaction
What is included there
Change and fee
Creation of the transaction
How can you spend the result
Terms
tx – transaction
txid – id of a transaction. Is used to search a transaction in
blockchain
Script – the name of the script language that describes
how a client should validate transactions
UTXO - Unspent Transaction Output – transactions output
Wallet – key pair
Address – public key
Transaction format
Transaction – a signed piece of data that authorizes
the sending of funds from one account to another
Service information – identifies the transaction and
allows implementing it correctly
Input – information about where the sender got
money from and proof that sender owns this money
Output – information about where money is flowing to
Transaction always spends money from
previous transaction
identifier of transaction
amount of inputs and
outputs
hash of transaction
that is spent here
signature of the sender
and their public key
amount of money that
is transferred
address where money
goes
Most important fields
Input
Account has no “balance”
There is a list of not spent transactions (cheques)
Input indicates which previous transaction
should be spent
Input contains also a signature of the sender
Transaction that contains 2 inputs and 2 outputs
Change and fee
All the money from previous transaction (you can find
this amount if you look up previous transaction) is
spent in the current one
Difference between money that input has and output
spends is considered a fee and is taken by miners
If you don’t want to pay high fee :) you have to create
output that returns change for you (thats why
transactions with many outputs are needed)
Change money is sent to address that you control
How transaction with change is formed
Combining your unspent transactions
If none of the unspent transactions that you have
(UTXO) contains enough money to pay - you have to
combine a few
Here transactions with a few inputs are needed
Money are summed up (and fee paid to miners is
calculated in the same way - difference between
total input and total output)
Your wallet (a piece of software) contains key pairs -
that is money that you control
How transactions spend money
notice that each
transaction pays 10k
satoshi as a fee
Summary
Every balance which is received or sent should be tied to the
address
Every address may be associated with the wallet. All the rest –
non-spendable, the coins that are sent to them – are lost
The balance that can be spent was always received from the wallet
The coins received to the address are not mixed – they are used
separately (or in a combination) in the moment when they are
spent
If the sum of all inputs is more, than the sum of outputs, the
change is considered to be a commission
Questions?
kravchenkopo@gmail.com
ideateam_macuser
ua.linkedin.com/in/pkravchenko/

More Related Content

PDF
Ethereum-Cryptocurrency (All about Ethereum)
PDF
Understanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
PDF
Bitcoin
PPTX
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
PPTX
Ethereum
PPTX
Smart Contract & Ethereum
PPTX
Blockchain and Bitcoin
Ethereum-Cryptocurrency (All about Ethereum)
Understanding Proof of Work (PoW) and Proof of Stake (PoS) Algorithms
Bitcoin
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...
Ethereum
Smart Contract & Ethereum
Blockchain and Bitcoin

What's hot (20)

PDF
Blockchain Technology Fundamentals
KEY
Introduction to bitcoin
PPTX
what is bitcoin, its history and detail
PPTX
Blockchain Introduction Presentation
PDF
Bitcoin Keys, Addresses & Wallets
PPTX
An Overview on Bitcoin
PPTX
Blockchain and distributed ledgers
PDF
01 - Introduction to Hyperledger : A Blockchain Technology for Business
PPTX
Blockchain consensus algorithms
PPTX
Bitcoin & Bitcoin Mining
PPTX
Blockchain
PPTX
Security and privacy with blockchain
PPTX
Cryptocurrency
PPTX
Blockchain Consensus Protocols
PDF
Blockchain Security Issues and Challenges
PDF
How does blockchain work
PPTX
Basic introduction in blockchain, smart contracts, permissioned ledgers
PDF
Introduction To CryptoCurrency
PPTX
Blockchain Technology
Blockchain Technology Fundamentals
Introduction to bitcoin
what is bitcoin, its history and detail
Blockchain Introduction Presentation
Bitcoin Keys, Addresses & Wallets
An Overview on Bitcoin
Blockchain and distributed ledgers
01 - Introduction to Hyperledger : A Blockchain Technology for Business
Blockchain consensus algorithms
Bitcoin & Bitcoin Mining
Blockchain
Security and privacy with blockchain
Cryptocurrency
Blockchain Consensus Protocols
Blockchain Security Issues and Challenges
How does blockchain work
Basic introduction in blockchain, smart contracts, permissioned ledgers
Introduction To CryptoCurrency
Blockchain Technology
Ad

Similar to How do bitcoin transactions work? (20)

PPTX
Wallets and Transactions #2
PDF
PPT Class Blockchain - Validation and CASE.pdf
PDF
Introduction into blockchains and cryptocurrencies
PDF
Blockchain Transactions Explained For Everyone
PDF
Bitcoin and Cryptocurrencies from dummies to computer scientists
PDF
Lecture 6 UTXOs, Ethereum, CBDC 2022f.pdf
PDF
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
PDF
HOW DO BITCOIN TRANSACTIONS WORK?
PPTX
Blockchain, Ethereum and Business Applications
PPTX
MODULE 3.pptx artificial intelligence ...
ODP
CBGTBT - Part 3 - Transactions 101
PPTX
Intro to blockchain
PPTX
Fundamentals of Blockchain Technology
PPT
A simplified Bitcoin Implementation in GO
PDF
#2 Case study Tachyon & ICOVO App by Yoshikazu Nishimura, ICOVO's CTO
PPTX
Bitcoin Transactions Examples
PDF
How blockchain networks work
PPTX
Crypto101.pptx
PPTX
Blockchain presentation.pptx
PPTX
Demysitifying Bitcoin and Blockchain
Wallets and Transactions #2
PPT Class Blockchain - Validation and CASE.pdf
Introduction into blockchains and cryptocurrencies
Blockchain Transactions Explained For Everyone
Bitcoin and Cryptocurrencies from dummies to computer scientists
Lecture 6 UTXOs, Ethereum, CBDC 2022f.pdf
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
HOW DO BITCOIN TRANSACTIONS WORK?
Blockchain, Ethereum and Business Applications
MODULE 3.pptx artificial intelligence ...
CBGTBT - Part 3 - Transactions 101
Intro to blockchain
Fundamentals of Blockchain Technology
A simplified Bitcoin Implementation in GO
#2 Case study Tachyon & ICOVO App by Yoshikazu Nishimura, ICOVO's CTO
Bitcoin Transactions Examples
How blockchain networks work
Crypto101.pptx
Blockchain presentation.pptx
Demysitifying Bitcoin and Blockchain
Ad

More from Pavel Kravchenko, PhD (18)

PDF
Cryptocurrency industry trends 2015
PDF
Tokenization v2
PDF
Tokenization
PPTX
Blockchain for business
PDF
How does Bitcoin work?
PDF
What is Bitcoin?
PPT
anonymity_KYC_short
PPT
Введение в смарт контракты. Лекция 8
PPT
Анонимность в Биткоин. Часть 1. Лекция 9
PPT
Как работает Multisignature. Лекция 7
PPT
Ledger-based системы. Альтернатива Bitcoin?
PPT
Как работает майнинг. Лекция 5
PPT
Как устроен Blockchain. Лекция 4
PPT
Как работают транзакции. Лекция 3
PPT
Как устроена криптовалюта. Лекция 2
PPT
Вступление в Биткоин. Лекция 1.
Cryptocurrency industry trends 2015
Tokenization v2
Tokenization
Blockchain for business
How does Bitcoin work?
What is Bitcoin?
anonymity_KYC_short
Введение в смарт контракты. Лекция 8
Анонимность в Биткоин. Часть 1. Лекция 9
Как работает Multisignature. Лекция 7
Ledger-based системы. Альтернатива Bitcoin?
Как работает майнинг. Лекция 5
Как устроен Blockchain. Лекция 4
Как работают транзакции. Лекция 3
Как устроена криптовалюта. Лекция 2
Вступление в Биткоин. Лекция 1.

Recently uploaded (20)

PPTX
E -tech empowerment technologies PowerPoint
PPTX
Database Information System - Management Information System
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PPTX
t_and_OpenAI_Combined_two_pressentations
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPT
250152213-Excitation-SystemWERRT (1).ppt
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
PPTX
artificialintelligenceai1-copy-210604123353.pptx
PPTX
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PPTX
Layers_of_the_Earth_Grade7.pptx class by
PDF
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
PPTX
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
PPT
Ethics in Information System - Management Information System
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
E -tech empowerment technologies PowerPoint
Database Information System - Management Information System
Mathew Digital SEO Checklist Guidlines 2025
t_and_OpenAI_Combined_two_pressentations
newyork.pptxirantrafgshenepalchinachinane
250152213-Excitation-SystemWERRT (1).ppt
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
artificialintelligenceai1-copy-210604123353.pptx
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Layers_of_the_Earth_Grade7.pptx class by
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
SAP Ariba Sourcing PPT for learning material
Power Point - Lesson 3_2.pptx grad school presentation
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
Ethics in Information System - Management Information System
isotopes_sddsadsaadasdasdasdasdsa1213.ppt

How do bitcoin transactions work?

  • 1. How do transactions work? Pavel Kravchenko Lecture 3
  • 2. Plan Terms What is transaction What is included there Change and fee Creation of the transaction How can you spend the result
  • 3. Terms tx – transaction txid – id of a transaction. Is used to search a transaction in blockchain Script – the name of the script language that describes how a client should validate transactions UTXO - Unspent Transaction Output – transactions output Wallet – key pair Address – public key
  • 4. Transaction format Transaction – a signed piece of data that authorizes the sending of funds from one account to another Service information – identifies the transaction and allows implementing it correctly Input – information about where the sender got money from and proof that sender owns this money Output – information about where money is flowing to
  • 5. Transaction always spends money from previous transaction
  • 6. identifier of transaction amount of inputs and outputs hash of transaction that is spent here signature of the sender and their public key amount of money that is transferred address where money goes Most important fields
  • 7. Input Account has no “balance” There is a list of not spent transactions (cheques) Input indicates which previous transaction should be spent Input contains also a signature of the sender
  • 8. Transaction that contains 2 inputs and 2 outputs
  • 9. Change and fee All the money from previous transaction (you can find this amount if you look up previous transaction) is spent in the current one Difference between money that input has and output spends is considered a fee and is taken by miners If you don’t want to pay high fee :) you have to create output that returns change for you (thats why transactions with many outputs are needed) Change money is sent to address that you control
  • 10. How transaction with change is formed
  • 11. Combining your unspent transactions If none of the unspent transactions that you have (UTXO) contains enough money to pay - you have to combine a few Here transactions with a few inputs are needed Money are summed up (and fee paid to miners is calculated in the same way - difference between total input and total output) Your wallet (a piece of software) contains key pairs - that is money that you control
  • 12. How transactions spend money notice that each transaction pays 10k satoshi as a fee
  • 13. Summary Every balance which is received or sent should be tied to the address Every address may be associated with the wallet. All the rest – non-spendable, the coins that are sent to them – are lost The balance that can be spent was always received from the wallet The coins received to the address are not mixed – they are used separately (or in a combination) in the moment when they are spent If the sum of all inputs is more, than the sum of outputs, the change is considered to be a commission