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.
Btw the address had only around 5000 satoshi left.... Link to api documentation
https://www.blockcypher.com/dev/bitcoin/#creating-transactions
Thanks