Author

Topic: Blockchain API. (Read 1104 times)

newbie
Activity: 11
Merit: 0
May 05, 2015, 07:07:04 PM
#10
All sales websites should be running bitcoind or similar and not be dependant on a remote service.

Personally, I think that is bad advice. Every small shop owner that decides to accept bitcoin should NOT be forced to run a full bitcoind node on their server. If that were the case bitcoin would fail. Bitcoin needs 3rd parties and lite clients to make the process easier for integration. Blockchain.info API offers an amazing service absolutely free. Yes it does go down from time to time, but the trade off is well worth it. I can register a website and hosting and start accepting bitcoin on my new website using blockchain.info's API in a few hours. No time needed to download the blockchain and no extra bloat to my servers bandwidth from having to run bitcoind.

As for the OP's question, sounds like bc.info is having some tech difficulties with the payment forwarding. The receive payments API should come back shortly.



Ive gotta agree, i found some priceless blockchain.info api tutorials on youtube that were very empowering ..(ahem)! After i found those tutorials my interest in bitcoin and php has gone up 300%! I didnt have to get a vps or a dedicated server .. just got a domain and a run of the mill hosting account and i was off to the races. If anything we need more dependable third party services like the one icanscript mentioned above. These guys look great too.. https://chain.com/

@ icanscript     :   thanks for the link. I was checking out the documentation at blockcypher.com and found this lil gem. http://dev.blockcypher.com/#zero_confirmations
 
Ill be taking a closer look at them when i get a chance.  
hero member
Activity: 686
Merit: 502
May 05, 2015, 11:42:54 AM
#9
Try Blockcypher (http://www.blockcypher.com/) Works Much Better, Much Faster and supports callbacks. They even have their own testnet with faucet so you can test before setting it to bitcoin main net.

PM me if you need any help.
member
Activity: 84
Merit: 10
May 05, 2015, 02:27:54 AM
#8
All sales websites should be running bitcoind or similar and not be dependant on a remote service.

Personally, I think that is bad advice. Every small shop owner that decides to accept bitcoin should NOT be forced to run a full bitcoind node on their server. If that were the case bitcoin would fail. Bitcoin needs 3rd parties and lite clients to make the process easier for integration. Blockchain.info API offers an amazing service absolutely free. Yes it does go down from time to time, but the trade off is well worth it. I can register a website and hosting and start accepting bitcoin on my new website using blockchain.info's API in a few hours. No time needed to download the blockchain and no extra bloat to my servers bandwidth from having to run bitcoind.

As for the OP's question, sounds like bc.info is having some tech difficulties with the payment forwarding. The receive payments API should come back shortly.

For there to be a trade you've got to do more than give something up, what do other solutions provide that's worth giving up a customer every now and then?  From a business perspective you can't recover from your "free" payment network going down.  The system was having problems just as the user was setting up...  That's not from time to time.

How does 3rd parties and lite clients to make anything easier?  Maintaining a connection to a single remote site over maintaining an application, it's not really much of a bargain.

There are simple solutions to the issues you've pointed out regarding the negatives of running bitcoind.  However there are not any solutions to working with a 3rd party's free service.
legendary
Activity: 1442
Merit: 1186
May 04, 2015, 07:51:18 PM
#7
All sales websites should be running bitcoind or similar and not be dependant on a remote service.

Personally, I think that is bad advice. Every small shop owner that decides to accept bitcoin should NOT be forced to run a full bitcoind node on their server. If that were the case bitcoin would fail. Bitcoin needs 3rd parties and lite clients to make the process easier for integration. Blockchain.info API offers an amazing service absolutely free. Yes it does go down from time to time, but the trade off is well worth it. I can register a website and hosting and start accepting bitcoin on my new website using blockchain.info's API in a few hours. No time needed to download the blockchain and no extra bloat to my servers bandwidth from having to run bitcoind.

As for the OP's question, sounds like bc.info is having some tech difficulties with the payment forwarding. The receive payments API should come back shortly.
newbie
Activity: 20
Merit: 0
May 04, 2015, 07:32:28 PM
#6
Hello. Any have got same problem with API blockchain.
My sales website to receive payments through Bitcoin. I use the API from blockchain service. But as members sending money in share wallet blockchain not handle btc to main wallet.
Any contribution will be welcome.

Taken from the blockchain.info official twitter (https://twitter.com/blockchain)

"API users: We are currently experiencing delays with payments forwarding. Thank you for your patience as we investigate the issue further."
legendary
Activity: 3346
Merit: 3130
May 04, 2015, 07:20:53 PM
#5
Hello. Any have got same problem with API blockchain.
My sales website to receive payments through Bitcoin. I use the API from blockchain service. But as members sending money in share wallet blockchain not handle btc to main wallet.
Any contribution will be welcome.

You can find information about the API here: https://blockchain.info/en/api/api_receive

As i understand the problem, your code generate a new Addy but it don't send the btc to your main wallet. If we take a look at the code we will see:

PHP Example

Code:
$secret = 'ZzsMLGKe162CfA5EcG6j';

$my_address = '{YOUR BITCOIN ADDRESS}';

$my_callback_url = 'https://mystore.com?invoice_id=058921123&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;

And from the api we have:

Code:
https://blockchain.info/api/receive?method=create&address=$receiving_address&callback=$callback_url

$receiving_address Your Receiving Bitcoin Address (Where you would like the payment to be sent)
$callback_url The callback URL to be notified when a payment is received. Remember to URL Encode the callback url when calling the create method.
RESPONSE: 200 OK, APPLICATION/JSON

{
    "fee_percent":0,
    "destination":"1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq",
    "input_address":"1KZoUuPWFAeyVySHAGqvTUDoX6P3ntuLNF",
    "callback_url":"http://yoururl.com"
}

I would have to take a look on your site code to find the problem. I think the problem is the destination addy.
member
Activity: 84
Merit: 10
May 04, 2015, 11:37:47 AM
#4
All sales websites should be running bitcoind or similar and not be dependant on a remote service.
member
Activity: 84
Merit: 10
May 04, 2015, 11:36:21 AM
#3
What do you mean by "blockchain" be more specific.

blockchain.info does not have shared wallets.

Please help inform everyone that using shared wallets is dangerous and these wallets shouldn't exist.  All web wallets should work like blockchain.info wallets.
sr. member
Activity: 320
Merit: 250
May 04, 2015, 06:51:33 AM
#2
Site link will be greatly appreciated.
newbie
Activity: 22
Merit: 0
May 04, 2015, 06:42:23 AM
#1
Hello. Any have got same problem with API blockchain.
My sales website to receive payments through Bitcoin. I use the API from blockchain service. But as members sending money in share wallet blockchain not handle btc to main wallet.
Any contribution will be welcome.
Jump to: