---
layout: simple
---
## ToyChain Transaction
Transactions block is an added record to the block which allow to attached values transfer to the block.
A transaction descript a transfer of value between account protected via [ECC][1]
(we use [secp256k1][5] see code [ECKeys.pm][2]).
You can register your [keypair][4] in the [admin](/admin/) section under [signup / keygen][3].
A transaction has inputs, outputs, and signatures,
in order be valid
- the total of inputs must be greater than the total of ouputs
- every account on the input side must have enough balance to satisfy the transactions
- all signature attached to the transaction must be authentic and the signed message not tempered
example of transaction in ([yaml][6] format)
{% comment %}
{%- endcomment -%}
txaddr: :txaddr
[1]: https://duckduckgo.com?q=Elliptic+Curve+Cryptography
[2]: /lib/ECKeys.pm
[3]: /admin/keygen.html
[4]: /templ/keys.yml
[5]: https://duckduckgo.com?q=secp256k1+!g
[6]: /templ/txexample.yml