trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
653 stars 647 forks source link

Filter account txs by any contract addresses #1101

Open tomasklim opened 3 months ago

tomasklim commented 3 months ago

In the staking tab of Trezor Suite, we need to filter staking related contracts interactions on the client.

https://github.com/trezor/blockbook/blob/master/docs/api.md#get-address

We see there is a contract parameter on /api/v2/address/<address>[?contract=<contract address>] which works now just for tokens. It should work for any contract address interaction. We need to expand it to accept an array of contract addresses so that we can filter pooling and accounting Everstake contracts at once.

Related to #12827