stacks-network / pybitcoin

A Bitcoin python library for private + public keys, addresses, transactions, & RPC
MIT License
277 stars 117 forks source link

No free outputs to spend #6

Closed cdfpaz closed 10 years ago

cdfpaz commented 10 years ago

Hi,

I am using BitcoinKeypair to generated address for new users in my bitcoin exchange ( https://github.com/pinhopro/bitex )

but when I try to get information from the new address created I get this message from blockchain:

"No free outputs to spend"

here my code:

$ cat test.py from coinkit.keypair import BitcoinKeypair

keypair = BitcoinKeypair()

print keypair.address()

$ python2.7 test.py 1Dw8sfTPJRf389sfD4ejqs5uQVCNWJU7aw

$ curl http://blockchain.info/unspent?address=1Dw8sfTPJRf389sfD4ejqs5uQVCNWJU7aw

shea256 commented 10 years ago

Hey @bzero!

Just to make sure, did you send BTC to the address already? There won't be any public record of the address you created until bitcoins are sent to that address. That would explain why nothing comes up on blockchain.info.

cdfpaz commented 10 years ago

Hi @rxl,

Thx for your response, I`ve just tested with a address generated by bitcoind and the result was the same!

Well, I am trying to create a transaction based on this site: http://offlinewallet.appspot.com/ ( this transaction will be signed in another step on our clearing process )

they uses blockchain to get "unspent_outputs", I am gonna test it sending to the new generated address as you sugest.

thx for your help