<h2><strong>Here are list of references to validate mainnet and testnet Bitcoin addresses:</strong></h2>

<h2><strong>Offline</strong></h2>

<p><strong>IN JAVA</strong></p>

<p><a href="https://rosettacode.org/wiki/Bitcoin/address_validation#Java" rel="nofollow noreferrer">https://rosettacode.org/wiki/Bitcoin/address_validation#Java</a> (mainnet + testnet)</p>

<p><a href="https://github.com/timqi/btc_address_validator/blob/master/BTCAddrValidator.java" rel="nofollow noreferrer">https://github.com/timqi/btc_address_validator/blob/master/BTCAddrValidator.java</a> (mainnet only)</p>

<p><strong>IN GO</strong></p>

<p><a href="https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.go" rel="nofollow noreferrer">https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.go</a></p>

<p><strong>IN PHP</strong></p>

<p><a href="https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.php" rel="nofollow noreferrer">https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.php</a></p>

<p><strong>IN RUBY</strong></p>

<p><a href="https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.rb" rel="nofollow noreferrer">https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.rb</a></p>

<h2><strong>Online Api</strong></h2>

<p><a href="https://blockexplorer.com/api/addr-validate/mjdkX5oxbc9ioTmbnRtc5g4Cojyr5esUuZ" rel="nofollow noreferrer">https://blockexplorer.com/api/addr-validate/mjdkX5oxbc9ioTmbnRtc5g4Cojyr5esUuZ</a> (mainnet + testnet)</p>

<p><strong><em>Note:</em></strong> For <strong>around 30 languages</strong> we can take benefit of same by following reference:</p>

<p><a href="https://rosettacode.org/wiki/Bitcoin/address_validation" rel="nofollow noreferrer">https://rosettacode.org/wiki/Bitcoin/address_validation</a></p>

CC BY-SA 4.0
2018-09-17T07:11:04.673Z
2018-09-17T08:20:04.047Z
2018-09-17T08:20:04.047Z
Maroon5
<p>I would like to know web api provider to validate Mainnet &amp; Testet3 Bitcoin Address. </p>

<p><a href="https://bitcoin.stackexchange.com/questions/2564/how-to-validate-a-bitcoin-address-is-a-real-one">How to validate a Bitcoin address is a real one?</a></p>

<p><a href="https://bitcoin.stackexchange.com/questions/13779/validate-bitcoin-address-from-android-application">Validate bitcoin address from android application</a></p>

<p>Gone through above references but Want a web service provider or local bitcoinJ type java library class.</p>

<blockchain><address><android>
how to validate testnet and mainnet bitcoin address via online api or offline for Android App?
Maroon5
# how to validate testnet and mainnet bitcoin address via online api or offline for Android App?

(Asked by: username_0 on 2018-09-17)

I would like to know web api provider to validate Mainnet & Testet3 Bitcoin Address.

[How to validate a Bitcoin address is a real one?](https://bitcoin.stackexchange.com/questions/2564/how-to-validate-a-bitcoin-address-is-a-real-one)

[Validate bitcoin address from android application](https://bitcoin.stackexchange.com/questions/13779/validate-bitcoin-address-from-android-application)

Gone through above references but Want a web service provider or local bitcoinJ type java library class.

**Tags:** blockchain, address, android


---

## 1 answers

### Answer by username_0 on 2018-09-17. Score: 2

## **Here are list of references to validate mainnet and testnet Bitcoin addresses:**

## **Offline**

**IN JAVA**

<https://rosettacode.org/wiki/Bitcoin/address_validation#Java> (mainnet + testnet)

<https://github.com/timqi/btc_address_validator/blob/master/BTCAddrValidator.java> (mainnet only)

**IN GO**

<https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.go>

**IN PHP**

<https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.php>

**IN RUBY**

<https://github.com/niksmac/btc-validate/blob/master/src/btc-validate.rb>

## **Online Api**

<https://blockexplorer.com/api/addr-validate/mjdkX5oxbc9ioTmbnRtc5g4Cojyr5esUuZ> (mainnet + testnet)

***Note:*** For **around 30 languages** we can take benefit of same by following reference:

<https://rosettacode.org/wiki/Bitcoin/address_validation>


---

