Bitcoin Forum
July 14, 2024, 04:31:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 ... 142 »
621  Economy / Auctions / Re: Advertise on BitcoinClock.com for 30 days - Round #2 on: October 09, 2012, 10:41:32 PM
I will bid 0.6 for this ad space

i think you should clarify, segabtc... have you bid 0.6 or are you simply planning to bid 0.6 (at some point in the future)?

622  Economy / Auctions / Re: Advertise on BitcoinClock.com for 30 days - Round #2 on: October 08, 2012, 03:12:35 AM
ok this might sound kinda funny, but can we run 3 or 4 different ads in the same block, like a rotation? have all of them constantly rotating? I will bid 0.6 for this ad space, and if willing to do the multiple ads, do a 0.1 addition for each different ad in rotation. More coin in your pocket. Just spitballing here to think of ideas.

sure, i could arrange that.

to be clear though, this ad space will only be sold to ONE buyer.

the winning bidder will then be allowed to rotate a few ads.

setting up a hardcoded script for a few specific banners should be fairly trivial.
623  Economy / Long-term offers / Re: ♔ RUSTYRYAN's 3.0% Weekly Term Deposits ♔ on: October 08, 2012, 02:09:27 AM
Back OT, Any updates? following this story, Hoping for a happy ending

there is already a happy ending; just ask ryan how happy he is right now.

About as happy as you are with all the coin you made by helping to perpetuate pirate's ponzi scheme?

no, much much happier than that.

But why? By all accounts he successfully stole far less money than you Wink

all accounts?

in which part of the planet does 1200 BTC equal less than 0 BTC?
624  Economy / Long-term offers / Re: ♔ RUSTYRYAN's 3.0% Weekly Term Deposits ♔ on: October 08, 2012, 01:47:55 AM
Back OT, Any updates? following this story, Hoping for a happy ending

there is already a happy ending; just ask ryan how happy he is right now.

About as happy as you are with all the coin you made by helping to perpetuate pirate's ponzi scheme?

no, much much happier than that.
625  Economy / Auctions / Re: Advertise on BitcoinClock.com for 30 days - Round #2 on: October 08, 2012, 01:44:59 AM
My turn Smiley 0.4

thanks atl, only a few days left now.
626  Economy / Long-term offers / Re: ♔ RUSTYRYAN's 3.0% Weekly Term Deposits ♔ on: October 08, 2012, 01:42:13 AM
Back OT, Any updates? following this story, Hoping for a happy ending

there is already a happy ending; just ask ryan how happy he is right now.
627  Local / 한국어 (Korean) / Re: www.bitcoins.co.kr on: October 08, 2012, 01:38:48 AM
http://비트코인.com
http://비트코인.net
http://비트코인.org
628  Economy / Gambling / Re: mem's BITCOIN GAMBLING LIST on: October 05, 2012, 03:38:50 AM
http://bittleships.in/ is redirecting elsewhere, hasn't shown the bittleships game for at least a few weeks now.
629  Economy / Long-term offers / Re: ♔ RUSTYRYAN's 3.0% Weekly Term Deposits ♔ on: October 05, 2012, 03:04:06 AM
I didn't get the interest on 9/23 9/30

really? that's coz it's a scam. start reading halfway down page 8.
630  Economy / Auctions / Re: Advertise on BitcoinClock.com for 30 days - Round #2 on: October 04, 2012, 01:47:18 AM
465 visitors yesterday.
631  Economy / Service Discussion / Re: Pirateat40 Prosecution on: October 04, 2012, 01:39:02 AM
Quote
When Bitcoin was launched in 2008, each Bitcoin traded at three US cents each;

where do people even come up with random 'facts' like that?


Any word from your pal Pussyat30?

i have no pals by that name.


632  Economy / Service Discussion / Re: Pirateat40 Prosecution on: October 04, 2012, 01:27:23 AM
Quote
When Bitcoin was launched in 2008, each Bitcoin traded at three US cents each;

where do people even come up with random 'facts' like that?
633  Economy / Auctions / Re: Advertise on BitcoinClock.com for 30 days - Round #2 on: October 03, 2012, 03:11:15 PM
what, no BIN? heheh just messing with ya, 0.3 from me then.

business identification number?



Buy it now! sorta like fleabay does.

oh!

i think i'll just wait. you were kidding anyway. but maybe a good thought for next time.
634  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 12:17:35 PM
Man is that ugly. I'm going to poke around to I can find a way to output it to nice clean HTML like on blockchain.info

i usually do this instead of var_dump:

echo '<pre>';
print_r($whatever);
echo '</pre>';

makes for an easy visualisation of the variable's structure.
635  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 05:07:57 AM
hell yea, getting there. outputted data without formatting 

i usually do this instead of var_dump:

echo '<pre>';
print_r($whatever);
echo '</pre>';

makes for an easy visualisation of the variable's structure.
636  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 04:59:28 AM
your basic code is mal-formed.

try this:

$address = '13sFP2R1tENbxcxGtH72ceW7YCvFjdLJkT';   //sets the address
$address_info = get_address_info($address);   //gets the info about the address into $address_info
var_dump($address_info);  //outputs the contents of $address_info to the browser

(and include the get_address_info function too)

edit: actually, to start with, use this line in place of line 2 above:
$address_info = get_address_info($address, true);   //gets the info about the address into $address_info
that way, you'll see some handy info on the screen to show what's going on.
637  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 04:48:57 AM
cURL a thing or that just a typo? what would that php look like?>

it's a thing. although i don't remember what the 'c' stands for.
638  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 04:46:21 AM
here's some code i did using cURL:

Code:
<?php
        
function get_address_info($address$debug false)
        {
                
$url 'http://blockchain.info/address/' $address '?format=json';

                if (
$debug)
                {
                        echo 
'Fetching URL: '.$url.'<br/>';
                }

                
$ch curl_init();
                
curl_setopt($chCURLOPT_URL$url);
                
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
                
curl_setopt($chCURLOPT_TIMEOUT10);
                
$response curl_exec($ch);
                
curl_close($ch);

                if (
$debug)
                {
                        echo 
'<pre>Curl Response: ';
                        
print_r($response);
                        echo 
'</pre>';
                }

                return 
json_decode($response);
        }

no jsonRPCClient required.
639  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 04:44:03 AM
ahh, Im not even running bitcoind right now. Im just trying to keep track of an address linked to an offline wallet.

Ill start reading up on bitcoind.

if you're purely just keeping track of an address, you don't even need to use RPC...

you could use cURL to read from blockchain.info's output, and then use PHP's functions to decode that JSON output into an object or array.

640  Bitcoin / Development & Technical Discussion / Re: PHP JSON script. calling blockchains.info API on: October 03, 2012, 04:38:06 AM
Uploaded the JSON RPC onto the site. Just left it in its folder

Going though the example.php

Should I make a new class say Transactions with this example?

or once I got the jsonrpcphp folder in my root directory i can just call to it?

something like?

<?php
$client=new jsonRPCClient('http://blockchain.info/address/$bitcoin_address?format=json');
$txs=$client->gettxs();
 ?>



don't put the blockchain.info address URL in there... put the URL which points to bitcoind.

eg. http://username:password@127.0.0.1:8332/ if you're running bitcoind on your own server
or
http://username:password@blockchain.info:80
if you're using blockchain.info's api

you don't need to make a new class.

just call jsonRPCClient with whatever function you need to use.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 ... 142 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!