-
Notifications
You must be signed in to change notification settings - Fork 0
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 v2 #270
Labels
Comments
This was referenced Oct 3, 2023
Closed
Closed
That's something that IMO is better to do on LB level. |
The progress is reported: spacemeshos/api#295 (comment) |
The last "missing" item here was the rosetta integration. We have decided to skip it for now. The rest is done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is placeholder issue to hold API improvements
v2alpha1 api specification based on Lane and Kirill requirements:
API services
Every service will contain Stream (private grpc) and List (public grpc - with pagination) endpoints to have minimal safe API.
the goal is to have efficient (in terms of cpu and disk usage) and correct (atleast once delivery semantics with reorg support) client to facilitate:
the implementation will consist of streams per every object (atxs, ballots, blocks, txs, tx results, reward, certificates, proposals). every object will be complete, in a sense that it should be possible to re-encode it in scale and verify signatures.
every stream will read history from database and switch to inmemory subscriptions in a "correct" way. the correct way will be elaborated in technical specification. good example of such API is stream for transaction results
the competing idea is #269
the goal is to have minimal safe API for interacting with vm. as such it should support:
submit transaction with strict validation (only 1 concurrent tx). this is different from sending to your own node
poll result of the transaction and state in mempool
query single account balance
builtin per-ip rate limiting
rosetta integration
https://www.rosetta-api.org/
as stated integration for rosetta API
from that list 1 and 2 items have a higher priority and can be completed with 1-2 month, rossetta can be completed later within 6 month.
The text was updated successfully, but these errors were encountered: