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

API: another round of improvements #228

Open
4 tasks done
altergui opened this issue Sep 4, 2024 · 0 comments
Open
4 tasks done

API: another round of improvements #228

altergui opened this issue Sep 4, 2024 · 0 comments
Assignees

Comments

@altergui
Copy link

altergui commented Sep 4, 2024

today i'll be merging a PR in the backend that addresses:

backend changelog:

  • api: refactor full block endpoints, they now return:

    • hash
    • header (with sparse contents but struct remains untouched)
    • txCount (new field)
      removed fields:
    • evidence
    • data
    • lastCommit
      affected endpoints:
    • /chain/blocks/{height}
    • /chain/blocks/hash/{hash}
  • api: remove endpoint /chain/transactions/reference/index/{index}

  • api: refactor transactions endpoints:
    rename these fields:

    • transactionHash -> hash
    • blockHeight -> height
    • transactionIndex -> index
    • transactionType -> type
      add these fields:
    • subtype
    • signer

    affected endpoints:

    • /chain/blocks/{height}/transactions/page/{page}
    • /chain/transactions/page/{page}
    • /chain/transactions
    • /chain/transactions/{height}/{index}
    • /chain/transactions/reference/{hash}
  • api: /chain/transactions endpoint now accepts more filter params:

    • subtype (exact match)
    • signer (exact match)
  • api: new endpoint /chain/transactions/{hash}

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

3 participants