Closed in3rsha closed 8 years ago
Strangely this works for me, although I know there are older versions that struggled if the output script's length was greater than ~256 bytes. If it was a recent version I'd take a quick look if you have an error, but I suggest you move to bitwasp/bitcoin
https://github.com/Bit-Wasp/bitcoin-php as it's more complete and actively maintained.
Yep, I believe I was using an older version of this script (installed using composer). Thank you.
The
RawTransaction::decode
function works for almost every transaction, but it doesn't seem to be read thevout
for this transaction.TXID:
54bbfc96996328578a1617fe7642d2a4d64a3cb373fa9af086e5242fab5a145e
Raw Transaction Data:
The results of
bitcoin-cli decoderawtransaction
are able to pick up the vout:http://learnmeabitcoin.com/explorer/transaction/54bbfc96996328578a1617fe7642d2a4d64a3cb373fa9af086e5242fab5a145e
I can't figure out why it's failing. The transaction data doesn't seem unusual.
EDIT:
More examples: TXID:
44d9919f4ec5579351073de20ac5117cda9989f31a6556c9d0ec8eb61c0a45c5
TXID:4a56c1161f3ae25c90e0e6adef4a514c3e532fd71bd99e74717058a7394e0649