-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key "3" decoded as "Q" symbol #24
Comments
It seems I've deleted an example on testing the previous issue. Anyway check the subject please. |
Today, I have following errors in the script debug, some data can't be decoded to the plain text (block 852 for example): Warning: hex2bin(): Input string must be hexadecimal string in /crawler-api-node/crawler.php on line 99
add namespace NaYeBgWHcrgCR26shgmNRyBDWdfU7iQhyo
PHP Notice: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\x97\x14' for column 'key' at row 1 in /crawler-api-node/library/mysql.php on line 150``` |
I've found, that by calling to API using function
Where 51 - is the "Q" symbol but should be the "3". Decoding mode issue?
|
Sorry for the late reply. Here "51" in the output of transaction decoding is decimal value, not hexadecimal value. In fact, every number that is smaller than 0xFFFFFFFF will be represented as decimal value. The behaviour is inherited from Bitcoin. Since 51 is decimal, it represents "3" in ASCII table. |
Thank you for reply! I have fixed the problem by following solution, maybe will helpful for PHP devs:
|
Also, there is lot of hidden records in kevacoin wallet:
|
I'm writing a content researching script. All working well there, but I've detected a strange behavior on parsing a block 308648, txid:
40bb0060b91a0b2f333b17a0da1f3dae92d9f52a904f241401f0f6cb355d37e5
What is the reason? In the wallet it is "3" and in the API response it's "Q"
(I'm using remote API by https://explorer.kevacoin.org/info to interact with the blockchain, may be issue of this service)
The script and all the decoding process presented here (but it's no problem with the literal key names):
https://github.com/kvazar-network/crawler-api-node/blob/main/crawler.php
The text was updated successfully, but these errors were encountered: