<p>A client for transactional purposes can have less capabilities than a client that also will perform the tasks needed to support mining.</p>

<p>A lightweight client to review might be <a href="https://github.com/jgarzik/picocoin" rel="nofollow">picocoin</a>, "a tiny bitcoin library, with lightweight client and utils".</p>

CC BY-SA 3.0
2013-03-02T14:44:58.767Z
Nice simple library but what I was asking for is a thorough explanation to the points I mentioned above, anyway I found this post [285-bytes-that-changed-the-world](http://james.lab6.com/2012/01/12/bitcoin-285-bytes-that-changed-the-world/).
Xclane
CC BY-SA 3.0
2013-03-01T19:41:03.037Z
2013-03-01T19:41:03.037Z
Stephen Gornick
<p>Could someone explain to me how the bitcoin transaction scripts work?How to build custom scripts?
Also please explain the data structure of transactions as specified by the bitcoin protocol? How to collect unconfirmed transactions to start mining, what is protocol API for writing python scripts to collect transactions, generate blocks, build transactions and other necessary information to build a bitcoin client from scratch?</p>

CC BY-SA 3.0
2013-03-01T18:57:39.773Z
[There is no spec for a full bitcoin client that is shorter than the source code for the standard client.](https://github.com/bitcoin/bitcoin)
Nick ODell
CC BY-SA 3.0
2013-03-01T19:23:48.187Z
I think it would be handy to develop libraries implementing the protocol methods for building transaction scripts as well as generating blocks(mining) and provide a handy interface to the bitcoin protocol just like "requests" and "twisted" libraries.
Xclane
<transactions><blockchain><protocol><api>
Bitcoin Transaction Scripts
Xclane
# Bitcoin Transaction Scripts

(Asked by: username_0 on 2013-03-01)

Could someone explain to me how the bitcoin transaction scripts work?How to build custom scripts?
Also please explain the data structure of transactions as specified by the bitcoin protocol? How to collect unconfirmed transactions to start mining, what is protocol API for writing python scripts to collect transactions, generate blocks, build transactions and other necessary information to build a bitcoin client from scratch?

**Tags:** transactions, blockchain, protocol, api

> **Comments:**
> **username_1**: [There is no spec for a full bitcoin client that is shorter than the source code for the standard client.](https://github.com/bitcoin/bitcoin)  
> **username_0**: I think it would be handy to develop libraries implementing the protocol methods for building transaction scripts as well as generating blocks(mining) and provide a handy interface to the bitcoin protocol just like "requests" and "twisted" libraries.  

---

## 1 answers

### Answer by username_2 on 2013-03-01. Score: 1

A client for transactional purposes can have less capabilities than a client that also will perform the tasks needed to support mining.

A lightweight client to review might be [picocoin](https://github.com/jgarzik/picocoin), "a tiny bitcoin library, with lightweight client and utils".

> **Comments:**
> **username_0**: Nice simple library but what I was asking for is a thorough explanation to the points I mentioned above, anyway I found this post [285-bytes-that-changed-the-world](http://james.lab6.com/2012/01/12/bitcoin-285-bytes-that-changed-the-world/).  

---

