Bitcoin Forum
May 06, 2024, 05:57:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Help with Blockchain API sendmany on: March 15, 2013, 11:56:40 PM
mrvision, have you tried using your main wallet address?
2  Bitcoin / Development & Technical Discussion / Re: Help with Blockchain API sendmany on: February 19, 2013, 04:26:20 AM
Thanks piuk, Do I need to urlencode() the whole string I'm requesting or just the list of recipients?

when I add urlencode() it formats my $recipient string to this:

%7B%22add1%22%3A65400%2C%22add2%22%3A65400%7D

When I send it off to get_file_contents() or use the string in a browser I still get "Unknown Error"

The browser then translates it back to:

{%22add1%22%3A65400%2C%22add2%22%3A65400}
3  Bitcoin / Development & Technical Discussion / Re: Help with Blockchain API sendmany on: February 19, 2013, 12:58:43 AM
Sorry I left out the request, I'm using file_get_contents().
4  Bitcoin / Development & Technical Discussion / Re: Help with Blockchain API sendmany on: February 19, 2013, 12:38:03 AM
Quote
Are you URL encoding the recipients JSON?

I think  Huh I'm doing this correctly, here is my code:

Code:
    foreach($payments as $addr){
        $add = $addr['add'];
        $addresses[add] = $addr['amount'] * 100000000;
    }
    $recipients = json_encode($addresses);

    $url = "https://blockchain.info/merchant/".$guid."/sendmany?password=".$pass."&second_password=".$pass2."&recipients=".$recipients."&anonymous=false&fee=50000"
    $response = file_get_contents($url);

5  Bitcoin / Development & Technical Discussion / Re: Help with Blockchain API sendmany on: February 19, 2013, 12:19:25 AM
yep, I've tried removing the quotes from the numbers and get {"error":"Unknown Error"}
6  Bitcoin / Development & Technical Discussion / Help with Blockchain API sendmany on: February 18, 2013, 11:52:28 PM
Hey,

Using PHP I've had success using the "payment" method and now trying to use "sendmany".

This is my request I'm using.
https://blockchain.info/merchant/$guid/sendmany?password=$pass&second_password=$pass2&recipients={"add1":"65400","add2":"65400"}&anonymous=false&fee=50000

And I keep getting this error:
{"error":"java.lang.String cannot be cast to java.lang.Long"}

Have I formatted the recipients incorrectly?
I've tried removing the "quotes" from the amounts but get the unknown error

Here is the documentation:
https://blockchain.info/api/blockchain_wallet_api

Any ideas?

7  Other / Beginners & Help / What are peoples favourite gambling games? on: September 30, 2012, 12:38:32 AM
Or what gambling games would like to see, either copied or unique.
8  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: September 30, 2012, 12:21:37 AM
I'd like to be White listed please.

I have been mining for a few years now, my current rig has 3x 5870 ATi cards providing 1.2Giga hash.
I'd like to post into the Dev section of the forum to ask about connecting to an online wallet like blockchain.info via RPC securely.

9  Other / Beginners & Help / Re: our new gambling site satoshiseleven.com on: September 30, 2012, 12:14:16 AM
Great website, what's the secret keys about?

these keys make it impossible to cheat, i explained it in the faq

So the secret key id shown on the front page is the reference to the precomputed random characters used to seleect the winner. which is shown 24 hours after the draw?
10  Other / Beginners & Help / Re: our new gambling site satoshiseleven.com on: September 29, 2012, 11:09:08 PM
Great website, what's the secret keys about?
11  Other / Beginners & Help / Re: Oi Mate, Who Else is From The Down under? on: September 29, 2012, 11:03:57 PM
Crikey!
12  Other / Beginners & Help / Re: Any hope of getting bitcoin now? (dwolla 30 day bullcrap : () on: September 29, 2012, 11:01:25 PM
I used http://cryptoxchange.com/ only 1 day via bank transfer
13  Other / Beginners & Help / PHP jsonRPCClient Connect to blockchain.info over SSL? on: September 29, 2012, 10:57:06 AM
So their API says to use the -rpcssl, how do we use that with the PHP jsonRPCclient here http://jsonrpcphp.org. I can't see how to connect via port 443

I've tried like so:
Code:
$b = new jsonRPCClient('http://USER:PASSWORD@http://blockchain.info:443')

$b = new jsonRPCClient('https://USER:PASSWORD@https://blockchain.info:80')

$b = new jsonRPCClient('https://USER:PASSWORD@https://blockchain.info:443')

$b = new jsonRPCClient('https://USER:PASSWORD@https://blockchain.info')


I just keep getting Unable to connect to https://blockchain.info


Edit: I can however connect like so
Code:
$b = new jsonRPCClient('http://USER:PASSWORD@http://blockchain.info')

But it's not encrypted is it?


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!