Replies: 3 comments 8 replies
-
Hi @napelvs, The Go relayer tracks this information, which you can find more about here: cosmos/relayer#1235. We plan to track this in Hermes eventually. However, I haven't had the time to investigate this in more detail, so I don't have more information on how this can be achieved at the moment. |
Beta Was this translation helpful? Give feedback.
-
Yes, this issue is more related to the operation of the relayers than to Comet's operation. |
Beta Was this translation helpful? Give feedback.
-
@napelvs You can also retrieve the list of consensus states for a given client, and look at the timestamp of the latest one which corresponds to the time at which it was last updated. To this end, you can issue this gRPC query to the node (either in code, or using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone.
I'm developing an app where I need to know the time left for an IBC client to expire. Given my research, I've found the only possible way to get this piece of information is to retrieve:
The first is easily accessible, but I'm having issues retrieving the second one.
This is what I have right now:
[osmosis_rest_api_url]/cosmos/tx/v1beta1/txs?order_by=2&events=send_packet.packet_src_channel='channel-0'&events=send_packet.packet_src_port='transfer'&events=send_packet.packet_dst_channel='channel-141'&message.action='/ibc.core.client.v1.MsgUpdateClient'&limit=1
The issue I run into is that the
message.action='/ibc.core.client.v1.MsgUpdateClient'
parameter in the query doesn't work. Also, I see that thechain_id
value in the json response doesn't align with the channels mentioned in the query. It should be either Osmosis or Cosmos, but I get random chains I'm not interested in.While help in achieving this query to respond the way I expect is greatly appreciated, further information into how to filter information would be paramount in making sure I don't need to ask around every time. I want to be as self-sufficient as possible. Send in any helpful documentation and tips on anything related to REST API calls and filtering the JSON responses.
Thank you for reading.
Beta Was this translation helpful? Give feedback.
All reactions