<p>Here and in the following articles I explain how to build and sign a Bitcoin transaction from scratch. There are also C code examples attached:</p>
<p><a href="https://davidederosa.com/basic-blockchain-programming/inside-transactions/" rel="nofollow noreferrer">https://davidederosa.com/basic-blockchain-programming/inside-transactions/</a></p>

CC BY-SA 4.0
2015-06-05T09:19:59.090Z
2021-02-25T19:08:32.337Z
2021-02-25T19:08:32.337Z
keeshux
<p>This is done in the Javascript from BlockChain.info:</p>

<ul>
<li><a href="http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062" rel="nofollow">http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062</a></li>
</ul>

<p>The transaction can then be sent using either of the following:</p>

<ul>
<li><a href="http://blockchain.info/pushtx" rel="nofollow">http://blockchain.info/pushtx</a></li>
<li><a href="http://bitsend.rowit.co.uk/" rel="nofollow">http://bitsend.rowit.co.uk/</a></li>
</ul>

CC BY-SA 3.0
2012-04-14T21:22:05.473Z
2012-04-14T21:22:05.473Z
Stephen Gornick
<p>When one sets up a <a href="https://en.bitcoin.it/wiki/Protocol_specification#tx">transaction</a>, the input of the transaction needs to have a script with a signature to show that you can spend those coins. Which fields of the previous and current transactions need to be concatenated into a message and signed to generate a proper signature? Can someone provide some examples?</p>

CC BY-SA 4.0
2019-01-30T23:23:51.933Z
see 'Signatures & Witnesses' of the following link : https://medium.com/coinmonks/how-to-create-a-raw-bitcoin-transaction-step-by-step-239b888e87f2
mkcisse
CC BY-SA 3.0
2012-03-22T02:56:46.613Z
Does this thread give any help? http://bitcointalk.org/index.php?topic=50282.0  and verifier here: http://bitsend.rowit.co.uk
Stephen Gornick
CC BY-SA 3.0
2012-03-22T15:40:30.437Z
@StephenGornick Well, it gives a couple examples of raw transactions and a way to verify them online, but still doesn't explain how to create such transactions without using the Bitcoin client.
ThePiachu
<transactions><protocol><development><ecdsa><signature>
Transaction signature generation
ThePiachu
# Transaction signature generation

(Asked by: username_0 on 2012-03-21)

When one sets up a [transaction](https://en.bitcoin.it/wiki/Protocol_specification#tx), the input of the transaction needs to have a script with a signature to show that you can spend those coins. Which fields of the previous and current transactions need to be concatenated into a message and signed to generate a proper signature? Can someone provide some examples?

**Tags:** transactions, protocol, development, ecdsa, signature

> **Comments:**
> **username_2**: Does this thread give any help? http://bitcointalk.org/index.php?topic=50282.0  and verifier here: http://bitsend.rowit.co.uk  
> **username_0**: @username_2 Well, it gives a couple examples of raw transactions and a way to verify them online, but still doesn't explain how to create such transactions without using the Bitcoin client.  
> **username_1**: see 'Signatures & Witnesses' of the following link : https://medium.com/coinmonks/how-to-create-a-raw-bitcoin-transaction-step-by-step-239b888e87f2  

---

## 2 answers

### Answer by username_3 on 2015-06-05. Score: 3

Here and in the following articles I explain how to build and sign a Bitcoin transaction from scratch. There are also C code examples attached:

<https://davidederosa.com/basic-blockchain-programming/inside-transactions/>


---

### Answer by username_2 on 2012-04-14. Score: 2

This is done in the Javascript from BlockChain.info:

* <http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062>

The transaction can then be sent using either of the following:

* <http://blockchain.info/pushtx>
* <http://bitsend.rowit.co.uk/>


---

