<p>Blockchain.info doesn't support API for Testnet network.</p>

<p>That API Pages for Mainnet network. What you can use <a href="https://www.blockcypher.com/dev/bitcoin/?php#blockcypher-supported-language-sdks" rel="nofollow noreferrer">blockcypher</a> as an alternative, they're supporting Testnet for bitcoin.  </p>

CC BY-SA 3.0
2018-03-04T10:18:59.360Z
2018-03-04T11:01:36.900Z
2018-03-04T11:01:36.900Z
Tailer
<p>I have created a testnet wallet on <a href="https://testnet.blockchain.info" rel="nofollow noreferrer">testnet.blockchain.info</a> and added some testnet bitcoins to it. </p>

<p>I want to test the payment APIs so I am following <a href="https://testnet.blockchain.info/api/api_receive" rel="nofollow noreferrer">the documentation</a> on how to Generate a receive address. Yet I do not see a way or an URI to register a testnet receive address.</p>

<p>I tried to use it as is and I've put my testnet xpub in the query but I get this error:</p>

<pre><code>{
    "message": "Invalid xpub format",
    "description": "Ensure you provide an xpub key, rather than an address"
}
</code></pre>

<p>Anyone had success using blockchain's payment APIs with testnet before?</p>

<blockchain.info><payment-processors>
Blockchain.info testnet payment APIs
Zaid Amir
# Blockchain.info testnet payment APIs

(Asked by: username_0 on 2018-03-04)

I have created a testnet wallet on testnet.blockchain.info and added some testnet bitcoins to it. 
I want to test the payment APIs so I am following the documentation on how to Generate a receive address. Yet I do not see a way or an URI to register a testnet receive address.
I tried to use it as is and I've put my testnet xpub in the query but I get this error:
{
    "message": "Invalid xpub format",
    "description": "Ensure you provide an xpub key, rather than an address"
}

Anyone had success using blockchain's payment APIs with testnet before?

**Tags:** blockchain.info, payment-processors


---

## 1 answers

### Answer by username_1 on 2018-03-04. Score: 0

Blockchain.info doesn't support API for Testnet network.

That API Pages for Mainnet network. What you can use [blockcypher](https://www.blockcypher.com/dev/bitcoin/?php#blockcypher-supported-language-sdks) as an alternative, they're supporting Testnet for bitcoin.


---

