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

feat: Add API for chain data explorer #434

Merged
merged 3 commits into from
Dec 9, 2022
Merged

Conversation

YoshihitoAso
Copy link
Member

@YoshihitoAso YoshihitoAso commented Dec 8, 2022

close #432

API

  • [NEW] GET: /blockchain_explorer/block_data
    • Returns a list of block data within the specified block number range. The maximum number of search results is 1000.
  • [NEW] GET: /blockchain_explorer/block_data/{block_number}
    • Returns block data in the specified block number.
  • [NEW] GET: /blockchain_explorer/tx_data
    • Returns a list of transactions by various search parameters. The maximum number of search results is 10000.
  • [NEW] GET: /blockchain_explorer/tx_data/{hash}
    • Searching for the transaction by transaction hash.

Indexer

  • Add Indexer for indexing BlockData and TxData.
  • New environment variable: BC_EXPLORER_ENABLED (default: 0)

@YoshihitoAso YoshihitoAso marked this pull request as ready for review December 8, 2022 12:51
@@ -0,0 +1,87 @@
"""v21_12_0_feature_432
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v22_12_0 would be nice.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. I guess I was in a bit of a time warp.

Copy link
Member

@purplesmoke05 purplesmoke05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

@YoshihitoAso YoshihitoAso merged commit 9e84d5a into dev-22.12 Dec 9, 2022
@YoshihitoAso YoshihitoAso deleted the feature/#432 branch December 9, 2022 01:27
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.

[FEATURE] New API for chain data explorer
2 participants