<p><a href="https://github.com/ElementsProject/elements/blob/elements-0.14.1/qa/rpc-tests/confidential_transactions.py" rel="nofollow noreferrer">https://github.com/ElementsProject/elements/blob/elements-0.14.1/qa/rpc-tests/confidential_transactions.py</a> generates various tranactions. I think I will be able to dump the txs and use them in my tests.</p>

CC BY-SA 4.0
2018-12-17T09:25:18.250Z
2018-12-17T09:25:18.250Z
Dmitry Petukhov
<p>I'm working on adding support for Elements sidechain to  <a href="https://github.com/Simplexum/python-bitcointx/" rel="nofollow noreferrer">https://github.com/Simplexum/python-bitcointx/</a> library.</p>

<p>Transaction serialization/deserialization seems to be working, but to test it properly, I need samples of different transactions (with or without assets, confidential/unconfidential etc).</p>

<p>Preparing these samples by hand is tedious. Elements source contain tx_valid.json data, but it seems to contain only bitcoin transactions - if you try to decoderawtransaction() some of the data from that file with elements-cli, you get "TX decode failed"</p>

<p>I am not sure if it is possible to get real transactions from Liquid network - while blockstream.info have an explorer for Liquid, it does not show raw transaction data.</p>

<p>Is there a chance to get such sample data somewhere (besides generating it myself) ?</p>

<transactions><sidechains><testing><liquid>
Transaction deserialization test vectors for Elements sidechain?
Dmitry Petukhov
# Transaction deserialization test vectors for Elements sidechain?

(Asked by: username_0 on 2018-12-16)

I'm working on adding support for Elements sidechain to <https://github.com/Simplexum/python-bitcointx/> library.

Transaction serialization/deserialization seems to be working, but to test it properly, I need samples of different transactions (with or without assets, confidential/unconfidential etc).

Preparing these samples by hand is tedious. Elements source contain tx\_valid.json data, but it seems to contain only bitcoin transactions - if you try to decoderawtransaction() some of the data from that file with elements-cli, you get "TX decode failed"

I am not sure if it is possible to get real transactions from Liquid network - while blockstream.info have an explorer for Liquid, it does not show raw transaction data.

Is there a chance to get such sample data somewhere (besides generating it myself) ?

**Tags:** transactions, sidechains, testing, liquid


---

## 1 answers

### Answer by username_0 on 2018-12-17. Score: 0 | Accepted answer

<https://github.com/ElementsProject/elements/blob/elements-0.14.1/qa/rpc-tests/confidential_transactions.py> generates various tranactions. I think I will be able to dump the txs and use them in my tests.


---

