How to decode very huge (!) raw transactions? I'm parsing the blockchain to extract certain information I need for a script.

One thing I do is parsing transactions. What I do is:

getrawtransaction &lt;tx&gt;
decoderawtransaction &lt;rawtx&gt;


This works on most of the transactions (>99%) but some are very huge and the bitcoin client cant handle them. I wonder what else can handle them if not bitcoind itself. The error I get in bitcoind:

TX decode failed (code -22)


Thats because it cant accept very long arguments. My ruby script dies with

Arguement list too long - (Errno::E2BIG)


How to decode such transactions? Here are some examples:

2f50fdf7adbf58e91d738869948f4b191eb3cafa016c6df7e9182c06e4513852
e7229316b5a5b1f53382ec5a526b842dda2ca96bc891cd02d397a52c4a84dba0
540359af779a510828f0afd3c88562b62c37d0e4eeccb08104a167a3600f7956


Thanks.



Update: I just tried to paste the rawtransaction to this online parser and this one decodes that transaction without any problems. How is that possible programmatically?
try this:

bitcoind getrawtransaction 2f50fdf7adbf58e91d738869948f4b191eb3cafa016c6df7e9182c06e4513852 1


note the 1 at the end, which instructs bitcoind to operate in verbose mode.