question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unpack data_hex not work

See original GitHub issue

I wanna get balances from tx_hash so i followed this tutorial

https://counterpartytalk.org/t/how-to-encode-and-decode-a-counterparty-transaction/2426

{
“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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chiguireitorcommented, Jan 31, 2018

Ok, it seems you’re trying to unpack an enhanced send, this should work. Will check this issue.

0reactions
chiguireitorcommented, Feb 11, 2018

Duplicate of #1018

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot import Data.Hex · Issue #5506 · commercialhaskell/stack
General summary/comments (optional) ghci report: Could not find module 'Data.Hex' Steps to reproduce remove old stack files: mv ~/.stack ...
Read more >
is Paperless Forms not working / having issues for you?
Do you have Paperless Forms app problems? We have instructions to fix the not working issue, loading problems or the common black screen...
Read more >
Unpack different types of data packet - Stack Overflow
The data is not only one type, it's mixed with float,int etc. ... I have read the struct class, as I understood struct.unpack...
Read more >
How to read a specific byte(s) from a binairy file - Configuration
I have tried with pyton but io.open does not work correctly. ... python3 -c "print(open('/home/hass/.homeassistant/config/downloads/data.hex ...
Read more >
How to log in the Paperless website
Open a web browser;. Type in https://paperless.datahex.ca to access the Paperless website;. Enter your credentials: ◦ Username (email); ◦ Password;.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found