explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Allow filtering for transactions

Open whoabuddy opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe.

When looking at an account or a smart contract, there have been a few times where I'd like to locate a specific transaction.

To do this now, you have to manually load the transactions in batches from the bottom, possibly using ctrl+f or manually searching for the transaction in question.

On a larger contract, this becomes quite the task!

Describe the solution you'd like

It would be nice if there were a way to filter transactions either by typing in some information or selecting from options like contract name, function name, etc.

One example is trying to find the last three calls to stack-aggregation-commit in the boombox-admin-v3 contract with almost 2,000 total transactions.

For something like miamicoin-core-v2 with near 40,000 total transactions, it can be even harder.

Another use case is trying to find a past transaction on a personal account, e.g. the last time I stacked STX, stacked CityCoins, participated in ALEX, minted an NFT, etc.

Describe alternatives you've considered

I've written scripts for specific use cases in the past, but the explorer is my main go-to for browsing the chain and I think this would be a value-add for a lot of users.

One simpler fix could be to have a button that loads all TXs so I can then find the text on the page, having to scroll to the bottom each time, click the button, and wait is the hardest part.

whoabuddy avatar Jan 19 '23 21:01 whoabuddy

Good idea.

chresko avatar Jul 28 '23 13:07 chresko

@He1DAr would this be included in the new search?

andresgalante avatar Jun 12 '24 13:06 andresgalante

Describe the solution you'd like

@He1DAr would this be included in the new search?

We're planning to add filter by tx type but I like the idea of filtering by function name too. I'll include it in specs and check if it's doable.

He1DAr avatar Jun 12 '24 13:06 He1DAr

Great! We've implemented something client side that downloads all TXs then allows filtering for CC transactions: https://github.com/boomcrypto/citycoins2/blob/main/src/store/citycoins.ts https://github.com/boomcrypto/citycoins2/blob/main/src/store/stacks.ts#L144

It's definitely useful! :)

whoabuddy avatar Jun 12 '24 22:06 whoabuddy