<p>I know of several public APIs that can return serialized transactions:</p>
<ul>
<li>mempool.space: <a href="https://mempool.space/api/tx/$txid/hex" rel="nofollow noreferrer">https://mempool.space/api/tx/$txid/hex</a></li>
<li>blockstream.info: <a href="https://blockstream.info/api/tx/$txid/hex" rel="nofollow noreferrer">https://blockstream.info/api/tx/$txid/hex</a></li>
<li>blockchain.info: <a href="https://blockchain.info/rawtx/$txid?format=hex" rel="nofollow noreferrer">https://blockchain.info/rawtx/$txid?format=hex</a></li>
<li>blockchair.com: <a href="https://api.blockchair.com/bitcoin/raw/transaction/$txid" rel="nofollow noreferrer">https://api.blockchair.com/bitcoin/raw/transaction/$txid</a> (returns a JSON where one of the fields is the serialized transaction)</li>
</ul>

CC BY-SA 4.0
2023-09-20T13:46:52.973Z
2023-09-20T13:46:52.973Z
Vojtěch Strnad
<p>Is there any <em>online service or API</em> that allows you to get the transaction in raw form, i.e. in &quot;byte&quot; format? I know it can be done through bitcoin core, however, I need some <em>online service/API</em>. Also, I know that the <a href="https://mempool.space/" rel="nofollow noreferrer">mempool.space</a> site shows certain parts of the transaction in raw format, however, I need a view of the entire transaction in raw form.</p>
<p>Is there such an online service/API?</p>

<api><raw-transaction><mempool.space>
Is there any online service/API to get the complete transaction in raw form?
dassd
# Is there any online service/API to get the complete transaction in raw form?

(Asked by: username_0 on 2023-09-20)

Is there any *online service or API* that allows you to get the transaction in raw form, i.e. in "byte" format? I know it can be done through bitcoin core, however, I need some *online service/API*. Also, I know that the [mempool.space](https://mempool.space/) site shows certain parts of the transaction in raw format, however, I need a view of the entire transaction in raw form.

Is there such an online service/API?

**Tags:** api, raw-transaction, mempool.space


---

## 1 answers

### Answer by username_1 on 2023-09-20. Score: 2 | Accepted answer

I know of several public APIs that can return serialized transactions:

* mempool.space: <https://mempool.space/api/tx/$txid/hex>
* blockstream.info: <https://blockstream.info/api/tx/$txid/hex>
* blockchain.info: <https://blockchain.info/rawtx/$txid?format=hex>
* blockchair.com: <https://api.blockchair.com/bitcoin/raw/transaction/$txid> (returns a JSON where one of the fields is the serialized transaction)


---

