Cosmos REST API fetching list of tx events (transaction list)
Does anyone know why Cosmos Network keeps changing how their endpoints work? I have been working on a portfolio/wallet tracking application, I have changed the Cosmos implementation multiple times over the past 2 years, but this time I’ve noticed that REST API documentation has also been updated and it is impossible to find whatever I am looking for. I am using GET `/tx/v1beta1/txs` endpoint to list transactions for recipient or sender addresses using the event parameter as following `events=transfer.recipient={cosmos_address}` or `events=transfer.sender={cosmos_address}`. After the changes with v0.50, I noticed that it no longer works how I set up my requests, and `events` parameter has been deprecated since v0.47 - however, events are required to be set through `query` parameter, which doesn’t contain any example in the documentation (as I couldn’t find past 2 days). After trying to figure out how `query` parameter works and accepts a list of `events`, I have managed to get the following error using the following request: Query ``` /cosmos/tx/v1beta1/txs ?limit=50 &orderBy=ORDER_BY_ASC &query=events=transfer.recipient={cosmos_address} ``` Request ``` { "code":…
Excerpt (1198 of 1781 characters). Read the whole post on the forum ↗
I also had time spent on this. Quote your string e.g. ‘{cosmos_address}’