deemru / w8io

Waves Platform blockchain explorer (w8.io)
https://w8.io
MIT License
15 stars 16 forks source link

Add TXID in transaction list. #4

Closed username1565 closed 5 years ago

username1565 commented 5 years ago

Hello! On the page https://w8io.ru/WAVESADDRESS/ There is available the transactions history. But, there is no any TXID and the link on TXID. So, will be better to show this info, and add the URL for TXID. Something, like this: https://wavesblockexplorer.com/#!/tx/DvsqoyTaDyZEAxXsFCwMa1ZjToCYTkRsty6j8464MdCJ if your explorer not supporting show info by TXID, or will be better to implement the supporting this.

Best regards.

deemru commented 5 years ago

i want it too, but cannot decide where to place the link better? on a timestamp?

username1565 commented 5 years ago

Yes. Date-time -> link -> transaction ID. Also, near this link, you place the separate link, with javascript function to copy txid. For example copy txid -> glyphicon glyphicon-copy -> copied! and in the title tooltip can be full txid.

Example:

<a href="https://wavesblockexplorer.com/#!/tx/DvsqoyTaDyZEAxXsFCwMa1ZjToCYTkRsty6j8464MdCJ">2019.09.06 18:33</a>
<a href="javascript:void(0)" onclick="function_to_copy_txid('DvsqoyTaDyZEAxXsFCwMa1ZjToCYTkRsty6j8464MdCJ');" title="DvsqoyTaDyZEAxXsFCwMa1ZjToCYTkRsty6j8464MdCJ">Copy TXID.</a>
username1565 commented 5 years ago

I see transactions is available here: https://w8io.ru/tx/DvsqoyTaDyZEAxXsFCwMa1ZjToCYTkRsty6j8464MdCJ But on that links, where timestamp - just a numbers, and nothing to open.

deemru commented 5 years ago

it works now

username1565 commented 5 years ago

Hm... I still see the numbers when link is on hover of mouse cursor. Then, onclick, I see redirect is working. But, I think, this number need to replace to txid directly, without redirect, because maybe, txid's there is in some associative array, and if number of visitors will be so much, then this can working incorrectly, no?

deemru commented 5 years ago

no, these numbers from an internal database, it would be slower to get real txids for every record, so we get real txids only for clicked ones

username1565 commented 5 years ago

Nice! Thanks.