Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: PBmining on January 07, 2014, 11:06:13 PM



Title: blockchain.info -- input addresses from users do not forward to main wallet
Post by: PBmining on January 07, 2014, 11:06:13 PM
<?php

$secret = 'ZzsMLGKe162CfA5EcG6j';

$my_address = 'DH7gdDUhgsdig9s&dgSD(blahblahblah)';

$my_callback_url = 'http://blahblahblah.com/payments/index.php?invoice_id=0555521123&secret='.$secret;

$root_url = 'https://blockchain.info/api/receive';

$parameters = 'method=create&address=' . $my_address .'&callback='. urlencode($my_callback_url);

$response = file_get_contents($root_url . '?' . $parameters);

$object = json_decode($response);

echo 'Send Payment To : ' . $object->input_address;

?>



When a customer sends BTC to the input address, they do not get forwarded to my main address... why not?  All the satoshis I have sent during these tests are still sitting in those input wallets.  I thought the idea was that the generated input address forwards those funds directly to the $my_address...?


Title: Re: blockchain.info -- input addresses from users do not forward to main wallet
Post by: Abdussamad on January 08, 2014, 02:33:46 AM
There is a minimum amount above which it will forward coins. A few satoshis is not enough to cover the transaction fee even. Send more money!


Title: Re: blockchain.info -- input addresses from users do not forward to main wallet
Post by: PBmining on January 08, 2014, 03:24:48 AM
Thank you!  I think blockchain.info should mention this somewhere on their site.  I spent many many hours scratching my head over this.   :D 


Title: Re: blockchain.info -- input addresses from users do not forward to main wallet
Post by: Abdussamad on January 08, 2014, 03:36:36 AM
There is another thing you should be aware of. They forward payments in batches not in real time.

If you want to safely generate receiving addresses on a server you may want to look at using an Electrum master public key. That way you can generate all the addresses you need without risking your coins. You don't have to trust a third party either. Examples:

Address generation: https://github.com/prusnak/addrgen
Shopping cart: http://wordpress.org/plugins/bitcoin-payments-for-woocommerce/


Title: Re: blockchain.info -- input addresses from users do not forward to main wallet
Post by: PBmining on January 08, 2014, 05:45:27 AM
Thanks again.  What do you think of this?:
"https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Merchant_System"

Is this known for reliability as a full payment processing solution?  I would like to avoid blockchain.info all together...


Title: Re: blockchain.info -- input addresses from users do not forward to main wallet
Post by: bitpop on January 08, 2014, 06:56:14 AM
Also note shared=1 minimum is .2 maximum 250