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

Add API to get balance of an address on a block_height for a ticker #269

Open
InfoIsland opened this issue Nov 8, 2023 · 0 comments
Open
Labels
brc20 feature request New feature or request

Comments

@InfoIsland
Copy link

Summary

For indexer to effectively get balance on block for a particular ticker. It is good to have an batch API for it. It can largely reduced the rate for calling API, roughly by ~100x less. The shape of the API can looks like following:

request: {address: string, block_height: number, ticker: string}[]
response: {address: string, block_height: number, ticker: string, balance: string}[]

which request is an array of the queries, and response is an array of query results.

Reference

  • The similar BIS api documentation is here
  • The Indexer implementation for using such API is here
@rafaelcr rafaelcr self-assigned this Nov 27, 2023
@rafaelcr rafaelcr added feature request New feature or request brc20 labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brc20 feature request New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants