Skip to content

Add extra filter with blockHeightFrom and blockHeightTo (COR-2325)#174

Merged
DOBEN merged 2 commits intomainfrom
add-extra-filtering
Mar 11, 2026
Merged

Add extra filter with blockHeightFrom and blockHeightTo (COR-2325)#174
DOBEN merged 2 commits intomainfrom
add-extra-filtering

Conversation

@DOBEN
Copy link
Copy Markdown
Member

@DOBEN DOBEN commented Mar 10, 2026

Purpose

https://linear.app/concordium/issue/COR-2325/ask-implement-wallet-proxy-a-new-acctransactionsaccount-query

#172

Example curl command:

curl -XGET "http://localhost:3000/v3/accTransactions/4KYJHs49FX7tPD2pFY2whbfZ8AjupEtX8yNSLwWMFQFUZgRobL?limit=2&blockHeightFrom=4&order=a"
curl -XGET "http://localhost:3000/v3/accTransactions/4KYJHs49FX7tPD2pFY2whbfZ8AjupEtX8yNSLwWMFQFUZgRobL?limit=2&blockHeightTo=4&order=a"

Related to:
Concordium/concordium-transaction-logger#67

Changes

  • Add two query parameters to the endpoints v0/accTransactions, v1/accTransactions, v2/accTransactions, and v3/accTransactions:
    • blockHeightFrom: excludes transactions with block height earlier than blockTimeFrom
    • blockHeightTo: exclude transactions with block height later than blockHeightTo

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

CLA acceptance

_Remove if not applicable.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

@DOBEN DOBEN changed the title Add extra filter Add extra filter with blockHeightFrom and blockHeightTo (COR-2325) Mar 10, 2026
@DOBEN DOBEN merged commit 66f25de into main Mar 11, 2026
2 checks passed
@DOBEN DOBEN deleted the add-extra-filtering branch March 11, 2026 11:00
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

Successfully merging this pull request may close these issues.

2 participants