-
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
How to find namespace name in a tx which is not part of the wallet? #13
Comments
Now I know OP_UNKNOWN in the getrawtransaction is the namespace key value... I can use hex2bin to get key and value, but namespace is not words.
maybe namespace
key
value |
You are almost right: Namespace: 3526305f5f2a99103a91694b96460c0d4ff506c601 I guess you enable "txindex=1" in |
Thanks, so how to decoded Namespace: 3526305f5f2a99103a91694b96460c0d4ff506c601? Now I can use hex to ascii decoded key and value http://mcraigweaver.com/ascii.htm but Namespace is strange and different with key and value. Now I find another way to get namespace that I can add namespace in value and read value data. But If Namespace can be decodeded, I think it's better. |
If you convert the hex string What programming language are you using? This can be done very easily using Javascript. E.g. |
|
For PHP: I haven't tried this ... |
I have fixed the keva operation decoding in the master branch: |
Thanks very much, I use php and I will check how to use php to decoded. I think encoded this namespace is not necessary too.. |
ok got it~ 😄 |
I tried to use php to encode these hex, and finally success. but...I think the namespace hex in tx is not enough. for example blog namespace is NgKBKkBAJMtzsuit85TpTpo5Xj6UQUg1wr tx 08009579d3f34ff83d3650417b192915f3443d79d4beab188e796524ec1f4f64 so I get namespace hex OP_KEVA_PUT 35dfc637022a506c2640445445e326c6c2f9fc4538 I use https://github.com/dcentrica/bitcoin-base58check to encode
4K9GhJdTd6ZDbSBDN1JsJAkmARdYK I use bitcoin-encoder http://lenschulwitz.com/base58 get 4K9GhJdTd6ZDbSBDN1JsJAkmARdYK too. I use this bitcoin-encoder to decode NgKBKkBAJMtzsuit85TpTpo5Xj6UQUg1wr got 35dfc637022a506c2640445445e326c6c2f9fc45385ed8fdd5 so the real hex is longer than the hex in tx. 35dfc637022a506c2640445445e326c6c2f9fc4538 I use another https://www.better-converter.com/Encoders-Decoders/Base58Check-to-Hexadecimal-Decoder get full hex too. So I think it is not possiable to encode the hex to get namespace address if hex is not enough. 35dfc637022a506c2640445445e326c6c2f9fc4538 5e d8 fd d5 maybe 5e d8 fd d5 is for checking, but how to get it? I use full hex 35dfc637022a506c2640445445e326c6c2f9fc45385ed8fdd5 to get namespace name ok.
NgKBKkBAJMtzsuit85TpTpo5Xj6UQUg1wr |
finnaly sovled https://stackoverflow.com/questions/58782314/how-to-generate-trx-wallet-without-using-api this github include php base58check code and easy to use. Base58Check::encode("35dfc637022a506c2640445445e326c6c2f9fc4538", false , 0 , false); |
If I send someone a txid, how does he use the wallet to find the namespace name?
I can use gettransaction to get "details" if the tx is part of the wallet.
gettransaction cb1cb15cecf1956d3ef4b8bab356a1119b5cf3b92afb905f501c0054ab541c7b
But others only could use getrawtransaction, and no "details".
getrawtransaction cb1cb15cecf1956d3ef4b8bab356a1119b5cf3b92afb905f501c0054ab541c7b 1
Is there any other ways to get namespace name?
Now ravencoin support upload ipfx hash/txid to the blockchain, I think if everyone can check txid to visit namespace. It's both good for keva and rvn.
And send namespace to each other on the blochchain is possable.
The text was updated successfully, but these errors were encountered: