<p>I've looking for some solution to encode raw transaction in hex format by programmatically without fetching data from any blockchain provider. Are there any way to do this?</p>

CC BY-SA 4.0
2020-12-01T10:37:46.060Z
What is the source format (you'd like to go from X to hex, what's X)?
sr_gi
CC BY-SA 4.0
2020-12-02T10:31:29.497Z
@sr-gi The source format is raw tx convert to hex format, For an example by fetching from API (https://testnet.blockchain.info/rawtx/4c8827bac9a78836fc90124a1d61d5fd38fca1cf606c6c7d2de19ed9a5aef276?format=hex)
Vintage Beef
CC BY-SA 4.0
2020-12-03T12:03:05.660Z
I may be missing something. Your source format is already hex.
sr_gi
<bitcore><bitcoinjs>
How to get raw tx in hex format by not fetching API from provider?
Vintage Beef
# How to get raw tx in hex format by not fetching API from provider?

(Asked by: username_0 on 2020-11-27)

I've looking for some solution to encode raw transaction in hex format by programmatically without fetching data from any blockchain provider. Are there any way to do this?

**Tags:** bitcore, bitcoinjs

> **Comments:**
> **username_1**: What is the source format (you'd like to go from X to hex, what's X)?  
> **username_0**: @sr-gi The source format is raw tx convert to hex format, For an example by fetching from API (https://testnet.blockchain.info/rawtx/4c8827bac9a78836fc90124a1d61d5fd38fca1cf606c6c7d2de19ed9a5aef276?format=hex)  
> **username_1**: I may be missing something. Your source format is already hex.  

---

## 0 answers

