Bitcoin Forum
December 13, 2024, 09:16:05 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain API.  (Read 1103 times)
Min-btc (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
May 04, 2015, 11: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.
|Bitcoin|
Sr. Member
****
Offline Offline

Activity: 320
Merit: 250


View Profile
May 04, 2015, 11:51:33 AM
 #2

Site link will be greatly appreciated.
cheako
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
May 04, 2015, 04:36:21 PM
 #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.
cheako
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
May 04, 2015, 04:37:47 PM
 #4

All sales websites should be running bitcoind or similar and not be dependant on a remote service.
seoincorporation
Legendary
*
Offline Offline

Activity: 3374
Merit: 3130



View Profile
May 05, 2015, 12:20:53 AM
 #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.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
BitcoinMonitor
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 05, 2015, 12:32:28 AM
 #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."
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
May 05, 2015, 12:51:18 AM
 #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.

cheako
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
May 05, 2015, 07: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.
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
May 05, 2015, 04:42:54 PM
 #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.
Time_DJ
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
May 06, 2015, 12:07:04 AM
 #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.  
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!