You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /addresses/{address_hash}/transactions REST endpoint has a filter param according to the swagger docs.
Unfortunately, all it says is to | from. I'm trying to filter the transactions to be within a given block range. I've tried to following without success
which suggests it's possible to filter by passing from_block and to_block as part of options. However that is done is my question.
I tried to ask this question on Discord on #blockscout-api but instantly got a 7 day timeout without any details on what I did wrong (wtf?). From the search results it seems more people are confused on how this works. One question was answered pointing to the RPC API, but that gives a different response. I'm really interested in the REST version.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
/addresses/{address_hash}/transactions
REST endpoint has afilter
param according to the swagger docs.Unfortunately, all it says is
to | from
. I'm trying to filter the transactions to be within a given block range. I've tried to following without successI don't know Elixir, but with some searching I believe this endpoint eventually touches on this piece of code
blockscout/apps/explorer/lib/explorer/chain/transaction.ex
Lines 1548 to 1555 in f71924f
which suggests it's possible to filter by passing
from_block
andto_block
as part ofoptions
. However that is done is my question.I tried to ask this question on Discord on #blockscout-api but instantly got a 7 day timeout without any details on what I did wrong (wtf?). From the search results it seems more people are confused on how this works. One question was answered pointing to the RPC API, but that gives a different response. I'm really interested in the REST version.
Beta Was this translation helpful? Give feedback.
All reactions