Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support blockHeight query in GET /txs #466

Closed
jbibla opened this issue Feb 15, 2018 · 13 comments
Closed

Support blockHeight query in GET /txs #466

jbibla opened this issue Feb 15, 2018 · 13 comments
Assignees

Comments

@jbibla
Copy link
Contributor

jbibla commented Feb 15, 2018

for displaying all tx's in a particularly block specified by height.

see luniehq/lunie#454 for context.

✌️

@cwgoes cwgoes added this to the 1.0 Code Freeze milestone Apr 27, 2018
@jackzampolin
Copy link
Member

Can't you currently do this with the GET /txs endpoint right now? I guess this depends on whether or not you can use tags to search for a specific block. If you can't then it sounds like the solution here is to add an affordance (/txs?blockHeight=$FOO) to enable this search. Does that work @jbibla?

@jbibla
Copy link
Contributor Author

jbibla commented Oct 12, 2018

let me confirm with @faboweb

@faboweb
Copy link
Contributor

faboweb commented Oct 15, 2018

/txs?blockHeight=$FOO sounds like the way to go 👍

@fedekunze fedekunze changed the title LCD will need a general purpose TX endpoint Support blockHeight query in GET /txs Oct 20, 2018
@jackzampolin
Copy link
Member

Was chatting with @fedekunze and he mentioned there is a way to do this.

@alexanderbez
Copy link
Contributor

We should also support by hash.

@alexanderbez
Copy link
Contributor

alexanderbez commented Jan 3, 2019

Just to confirm, we want to be able to get all (decoded) txs for a particular block height or hash, correct @jbibla @jackzampolin?

@fedekunze
Copy link
Collaborator

fedekunze commented Jan 3, 2019

@alexanderbez I think we can already query txs by height using /txs?tx.height=<block> and by hash using /txs/{hash}. Idk if we have tests and proper docs tho...

EDIT: Ideally we should have /txs?height=<block> instead of tx.height

@jackzampolin
Copy link
Member

@fedekunze and we have a report here that the tx.height query isn't working.

@alexanderbez
Copy link
Contributor

alexanderbez commented Jan 4, 2019

Im confused. Is the goal here just to rename the query param?

@jackzampolin that issue seems to suggest the community members wants decoded txs, which is what I asked above. Or am I misunderstanding?

@fedekunze
Copy link
Collaborator

Idk this issue has been open for a while already, probably it wasn’t implemented back then

@fedekunze
Copy link
Collaborator

fedekunze commented Jan 4, 2019

Actually I think #2894 fixes this issue

@alexanderbez
Copy link
Contributor

Great! Can we update that PR to reference that it closes this one?

@fedekunze
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@alexanderbez @faboweb @jbibla @jackzampolin @cwgoes @fedekunze and others