Unpack data_hex not work


#1

I wanna get balances from tx_hash so i followed this tutorial

{
“method”: “get_tx_info”,
“params”: {“tx_hex”: “0100000001a89b03fc094f99b70d1006977280ee272f4c22b2ae2a738ed60d93fb49497e30010000006b483045022100867045c12241b097dc5e7ac873a21b2117248126aa8e7cee5982ecbe4a111a0202206ee1531937964b9c1a968a149e87b9d63a5f07fcc3eb8821a20973c2b9b6f91b0121028c661bb03d755f834a47e5d267432ae2bb002a5a63af69fd0749892fb7966c03ffffffff020000000000000000306a2e9bcaccbf7a31c1213f0b3d0c5f8b997fcdd0841d2ff3fb38a1b7dd8c2dc806222a1e74c23b9902ed7022d538ab7938f95705000000001976a914c8c934c4ad0fa394fd01747c375957f30752e26f88ac00000000”},
“jsonrpc”: “2.0”,
“id”: 1
}

Response:

{
“jsonrpc”: “2.0”,
“id”: 1,
“result”: [
“mypcUU2fYyJav7XUpPLtMVhuPupArLJtiM”,
“”,
0,
6175,
“0200000000082f6b7100000000000138806f23c3c1c7d135274d267528ff3bebf311958a4776”
]
}

Then

{
“method”: “unpack”,
“params”: {“data_hex”: “0200000000082f6b7100000000000138806f23c3c1c7d135274d267528ff3bebf311958a4776”},
“jsonrpc”: “2.0”,
“id”: 1
}

but

{
“jsonrpc”: “2.0”,
“error”: {
“data”: {
“type”: “APIError”,
“message”: “unsupported message type”,
“args”: [
“unsupported message type”
]
},
“code”: -32000,
“message”: “Server error”
},
“id”: 1
}

Does anyone have any idea ?! , thanks


#2

hers the tx decoded -->

“lock_time”:0,
“size”:249,
“inputs”:[
{
“prev_out”:{
“index”:1,
“hash”:“307e4949fb930dd68e732aaeb2224c2f27ee80729706100db7994f09fc039ba8”
},
“script”:“483045022100867045c12241b097dc5e7ac873a21b2117248126aa8e7cee5982ecbe4a111a0202206ee1531937964b9c1a968a149e87b9d63a5f07fcc3eb8821a20973c2b9b6f91b0121028c661bb03d755f834a47e5d267432ae2bb002a5a63af69fd0749892fb7966c03”
}
],
“version”:1,
“vin_sz”:1,
“hash”:“0b4f1c29024bc1aa3598f375302ed2a35e03290cebde3ca4d3d4dfb50d6174b6”,
“vout_sz”:2,
“out”:[
{
“script_string”:“OP_RETURN 9bcaccbf7a31c1213f0b3d0c5f8b997fcdd0841d2ff3fb38a1b7dd8c2dc806222a1e74c23b9902ed7022d538ab79”,
“value”:0,
“script”:“6a2e9bcaccbf7a31c1213f0b3d0c5f8b997fcdd0841d2ff3fb38a1b7dd8c2dc806222a1e74c23b9902ed7022d538ab79”
},
{
“script_string”:“OP_DUP OP_HASH160 c8c934c4ad0fa394fd01747c375957f30752e26f OP_EQUALVERIFY OP_CHECKSIG”,
“address”:“1KJfBQwgjwsL913s6pNWXaVaXvDTs5kVAW”,
“value”:89651512,
“script”:“76a914c8c934c4ad0fa394fd01747c375957f30752e26f88ac”
}
]
}


#3

now were you doing this on testnet or main? it appears you were doing it on testnet but i just wanted to confirm with you the network you were on? secondly, what exactly are you trying to “get”? because the way i read your post, it seemed as if you are attempting to “change” the output destination of that tx. which is no longer possible as it was in the past through a very lengthy process PRIOR to the 1st confirmation being obtained. that was only done by canceling a tx then respending the available “value” and of course you needed to be the holder of the private keys to resign the new tx.

remember, createrawtransaction does not automatically create change outputs, so you can easily accidentally pay a large transaction fee. In this example, our input had 50.0000 bitcoins and our output ($NEW_ADDRESS) is being paid 49.9999 bitcoins, so the transaction will include a fee of 0.0001 bitcoins. If we had paid $NEW_ADDRESS only 10 bitcoins with no other changes to this transaction, the transaction fee would be a whopping 40 bitcoins. See the Complex Raw Transaction subsection below for how to create a transaction with multiple outputs so you can send the change back to yourself.

for referance see --> https://bitcoin.org/en/developer-examples#simple-raw-transaction


#4

@pkeane4osu i wanna decode data_hex not decode transaction info(this one i can do myself). And im using testnet.

btw. They comfirmed that is a bug


#5

@something excuse me, do you know how it decode this one, many thanks