<p>It appears this service is no longer available per <a href="https://bitcointalk.org/index.php?topic=1761533.0" rel="nofollow noreferrer">other discussions</a> (and a failed ping of <code>rpc.blockchain.info</code>).</p>

<p>An alternative would be to use the <a href="https://www.blockchain.com/api/blockchain_api" rel="nofollow noreferrer">address query</a> on blockchain.info's api:</p>

<p><code>https://blockchain.info/rawaddr/$bitcoin_address</code></p>

<h3>Example</h3>

<p><strong>Single Address</strong></p>

<p><code>https://blockchain.info/rawaddr/1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F</code>  </p>

<p>Address can be base58 or hash160</p>

<ul>
<li>Optional limit parameter to show n transactions e.g. &amp;limit=50 (Default: 50, Max: 50)</li>
<li>Optional offset parameter to skip the first n transactions e.g. &amp;offset=100 (Page 2 for limit 50)</li>
</ul>

<p><br/></p>

<pre><code>{
    "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b",
    "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
    "n_tx":17,
    "n_unredeemed":2,
    "total_received":1031350000,
    "total_sent":931250000,
    "final_balance":100100000,
    "txs":[--Array of Transactions--]
}
</code></pre>

CC BY-SA 4.0
2018-07-27T15:59:21.523Z
2018-07-27T15:59:21.523Z
JBaczuk
<p>I'm trying to, given a bitcoin address, retrieve the last X transactions to this address. After researches, I found <a href="https://www.blockchain.com/es/api/json_rpc_api" rel="nofollow noreferrer">this</a> to be an interesting solution, as I don't want to download and validate the entire blockchain for this simple purpose.</p>

<p>On my Windows 10 machine, I downloaded bitcoin-core and tried to send a <code>getinfo</code> (I didn't execute bitcoin-qt as I don't want it to start syncing with the blockchain) :</p>

<pre><code>./bitcoin-cli -rpcconnect=rpc.blockchain.info -rpcport=80 -rpcuser=my_id -rpcpassword=my_password getinfo
</code></pre>

<p>I got an error message complaining about bitcoin.conf and credentials (indeed, there was no bitcoin.conf file in <code>%APPDATA%\Roaming\Bitcoin\</code>)</p>

<p>So I created a bitcoin.conf file :</p>

<pre><code>server=1
rpcuser=my_id
rpcpassword=my_password
rpcport=80
rpcconnect=rpc.blockchain.info
#rpcssl=1        #SSL mode for RPC is no longer supported
</code></pre>

<p>However, I get this error (bitcoin-cli has been allowed to access the web in Windows Firewall) :</p>

<pre><code>error: couldn't connect to server: EOF reached (code 1)
(make sure server is running and you are connecting to the correct RPC port)
</code></pre>

<p>Has the service been discontinued ? Or is there a problem with my configuration ?</p>

CC BY-SA 4.0
2018-07-27T13:30:47.863Z
looks like you're not the only one having problems: https://bitcointalk.org/index.php?topic=1761533.0
JBaczuk
CC BY-SA 4.0
2018-07-27T13:38:38.223Z
Oh, the topic has been created in january 2017..... I think they stopped providing this service, but didn't removed the doc webpage... Is there any alternative ? All I want is basically getting the result of ` listtransactions` and parse the result to get senders and transaction amount (in a C++ app if it matters). By the way, replacing .info with .com doesn't help either...
EinderJam
CC BY-SA 4.0
2018-07-27T14:00:06.733Z
You mean like this? https://blockchain.info/rawaddr/$bitcoin_address
JBaczuk
CC BY-SA 4.0
2018-07-27T15:19:29.743Z
This is P-E-R-F-E-C-T ! And I don't need to install anything on my system... Thank you !
EinderJam
CC BY-SA 4.0
2018-07-27T15:35:29.960Z
cool let's make an answer so people can find it more easily
JBaczuk
<blockchain.info><json-rpc><bitcoin-cli>
Can't connect to rpc.blockchain.info with bitcoin-cli
EinderJam
# Can't connect to rpc.blockchain.info with bitcoin-cli

(Asked by: username_0 on 2018-07-27)

I'm trying to, given a bitcoin address, retrieve the last X transactions to this address. After researches, I found this to be an interesting solution, as I don't want to download and validate the entire blockchain for this simple purpose.
On my Windows 10 machine, I downloaded bitcoin-core and tried to send a getinfo (I didn't execute bitcoin-qt as I don't want it to start syncing with the blockchain) :
./bitcoin-cli -rpcconnect=rpc.blockchain.info -rpcport=80 -rpcuser=my_id -rpcpassword=my_password getinfo

I got an error message complaining about bitcoin.conf and credentials (indeed, there was no bitcoin.conf file in %APPDATA%\Roaming\Bitcoin\)
So I created a bitcoin.conf file :
server=1
rpcuser=my_id
rpcpassword=my_password
rpcport=80
rpcconnect=rpc.blockchain.info
#rpcssl=1        #SSL mode for RPC is no longer supported

However, I get this error (bitcoin-cli has been allowed to access the web in Windows Firewall) :
error: couldn't connect to server: EOF reached (code 1)
(make sure server is running and you are connecting to the correct RPC port)

Has the service been discontinued ? Or is there a problem with my configuration ?

**Tags:** blockchain.info, json-rpc, bitcoin-cli

> **Comments:**
> **username_1**: looks like you're not the only one having problems: https://bitcointalk.org/index.php?topic=1761533.0  
> **username_0**: Oh, the topic has been created in january 2017..... I think they stopped providing this service, but didn't removed the doc webpage... Is there any alternative ? All I want is basically getting the result of ` listtransactions` and parse the result to get senders and transaction amount (in a C++ app if it matters). By the way, replacing .info with .com doesn't help either...  
> **username_1**: You mean like this? https://blockchain.info/rawaddr/$bitcoin_address  
> **username_0**: This is P-E-R-F-E-C-T ! And I don't need to install anything on my system... Thank you !  
> **username_1**: cool let's make an answer so people can find it more easily  

---

## 1 answers

### Answer by username_1 on 2018-07-27. Score: 0 | Accepted answer

It appears this service is no longer available per other discussions (and a failed ping of rpc.blockchain.info).
An alternative would be to use the address query on blockchain.info's api:
https://blockchain.info/rawaddr/$bitcoin_address
Example
Single Address
https://blockchain.info/rawaddr/1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F 
Address can be base58 or hash160

Optional limit parameter to show n transactions e.g. &limit=50 (Default: 50, Max: 50)
Optional offset parameter to skip the first n transactions e.g. &offset=100 (Page 2 for limit 50)


{
    "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b",
    "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
    "n_tx":17,
    "n_unredeemed":2,
    "total_received":1031350000,
    "total_sent":931250000,
    "final_balance":100100000,
    "txs":[--Array of Transactions--]
}


---

