<p>The <a href="https://bitcoin.org/en/developer-reference#validateaddress" rel="nofollow"><code>validateaddress</code> RPC</a> will do precisely that.  Here's sample output from a testnet address with Bitcoin Core 0.10.0:</p>

<pre><code>{
    "isvalid" : true,
    "address" : "mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe",
    "ismine" : true,
    "iswatchonly" : false,
    "isscript" : false,
    "pubkey" : "03bacb84c6464a58b3e0a53cc0ba4cb3b82848cd7bed25a7724b3cc75d76c9c1ba",
    "iscompressed" : true,
    "account" : "test label"
}
</code></pre>

<p>If the field <code>ismine</code> is false, the address doesn't belong to the currently-running Bitcoin Core wallet.</p>

CC BY-SA 3.0
2015-01-17T21:10:01.447Z
`verifyaddress` or `validateaddress`?
karasiov
CC BY-SA 3.0
2015-01-17T21:19:04.317Z
@theymos thanks for editing.  Karaslov: It was validateaddress; see the edit.  (And sorry about the confusion.)
David A. Harding
CC BY-SA 3.0
2015-01-17T20:20:39.487Z
2015-01-17T21:12:51.390Z
2015-01-17T21:12:51.390Z
David A. Harding
<p>For example, I have a BTC address. Can I (using RPC) get information is this address my local or remote?</p>

<address><json-rpc>
How to tell whether an address is local or remote?
karasiov
# How to tell whether an address is local or remote?

(Asked by: username_0 on 2015-01-17)

For example, I have a BTC address. Can I (using RPC) get information is this address my local or remote?

**Tags:** address, json-rpc


---

## 1 answers

### Answer by username_1 on 2015-01-17. Score: 2 | Accepted answer

The [`validateaddress` RPC](https://bitcoin.org/en/developer-reference#validateaddress) will do precisely that. Here's sample output from a testnet address with Bitcoin Core 0.10.0:

```
{
    "isvalid" : true,
    "address" : "mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe",
    "ismine" : true,
    "iswatchonly" : false,
    "isscript" : false,
    "pubkey" : "03bacb84c6464a58b3e0a53cc0ba4cb3b82848cd7bed25a7724b3cc75d76c9c1ba",
    "iscompressed" : true,
    "account" : "test label"
}

```

If the field `ismine` is false, the address doesn't belong to the currently-running Bitcoin Core wallet.

> **Comments:**
> **username_0**: `verifyaddress` or `validateaddress`?  
> **username_1**: @theymos thanks for editing.  Karaslov: It was validateaddress; see the edit.  (And sorry about the confusion.)  

---

