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

Model defined for Block #303

Open
barnjamin opened this issue Mar 19, 2022 · 2 comments
Open

Model defined for Block #303

barnjamin opened this issue Mar 19, 2022 · 2 comments
Labels
new-feature-request Feature request that needs triage Team Lamprey

Comments

@barnjamin
Copy link
Contributor

Problem

A number of folks have started working with the blocks from an API. We don't have any good models defined for them so anyone that wants to work with them needs to define them on their own.

Solution

Build out a class that can take a msgpack/json response from the API and provide utility methods for getting instantiated Transaction objects to work with them.

@barnjamin barnjamin added the new-feature-request Feature request that needs triage label Mar 19, 2022
@barnjamin
Copy link
Contributor Author

Wrote something dirty for parsing out the transactions from the block, does this kind of thing belong in the SDK? https://github.com/barnjamin/sdk-extras/blob/master/py/block_fetcher.py

@algoanne
Copy link
Contributor

related, to discuss: #479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage Team Lamprey
Projects
None yet
Development

No branches or pull requests

2 participants