<p>This comes from the code where the checksum of your private key is validated, and suggests that the key is not valid.  However, the private key shown in your code seems to pass validation on bitaddress.org, so the Python library you're using might have a bug.</p>

<p>(By the way, please don't reveal the private keys to real addresses!  It looks like all the coins were moved out of that address (1LLZQ...) a couple hours ago, hopefully by you, but any further coins sent to that address are likely to be stolen immediately.)</p>

CC BY-SA 4.0
2018-08-13T22:52:27.343Z
2018-08-13T22:52:27.343Z
Nate Eldredge
<p>When I run the code below, sending a BTC transaction to the blockchain (using blockcypher api) I get an Assertion Error. I am not sure what an Assertion error means.</p>

<p><a href="https://i.sstatic.net/TtBHT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TtBHT.png" alt="enter image description here"></a></p>

<p>The code:
<a href="https://i.sstatic.net/KUGKJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KUGKJ.png" alt="enter image description here"></a></p>

<p>Btw the address had only around 5000 satoshi left.... 
Link to api documentation</p>

<p><a href="https://www.blockcypher.com/dev/bitcoin/#creating-transactions" rel="nofollow noreferrer">https://www.blockcypher.com/dev/bitcoin/#creating-transactions</a></p>

<p>Thanks </p>

CC BY-SA 4.0
2018-08-13T21:55:37.543Z
I'm voting to close this question as off-topic because it is about general programming, not bitcoin
Raghav Sood
CC BY-SA 4.0
2018-08-13T22:45:40.970Z
This error means the checksum in your private key is incorrect.
Pieter Wuille
<python><blockcypher>
What could this Python Assertion error mean?
thomas1988
# What could this Python Assertion error mean?

(Asked by: username_0 on 2018-08-13)

When I run the code below, sending a BTC transaction to the blockchain (using blockcypher api) I get an Assertion Error. I am not sure what an Assertion error means.

[![enter image description here](https://i.sstatic.net/TtBHT.png)](https://i.sstatic.net/TtBHT.png)

The code:
[![enter image description here](https://i.sstatic.net/KUGKJ.png)](https://i.sstatic.net/KUGKJ.png)

Btw the address had only around 5000 satoshi left....
Link to api documentation

<https://www.blockcypher.com/dev/bitcoin/#creating-transactions>

Thanks

**Tags:** python, blockcypher

> **Comments:**
> **username_1**: I'm voting to close this question as off-topic because it is about general programming, not bitcoin  
> **username_2**: This error means the checksum in your private key is incorrect.  

---

## 1 answers

### Answer by username_3 on 2018-08-13. Score: 1

This comes from the code where the checksum of your private key is validated, and suggests that the key is not valid. However, the private key shown in your code seems to pass validation on bitaddress.org, so the Python library you're using might have a bug.

(By the way, please don't reveal the private keys to real addresses! It looks like all the coins were moved out of that address (1LLZQ...) a couple hours ago, hopefully by you, but any further coins sent to that address are likely to be stolen immediately.)


---

