py-algorand-sdk icon indicating copy to clipboard operation
py-algorand-sdk copied to clipboard

Model defined for Block

Open barnjamin opened this issue 3 years ago • 2 comments
trafficstars

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 avatar Mar 19 '22 14:03 barnjamin

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

barnjamin avatar Mar 23 '22 12:03 barnjamin

related, to discuss: https://github.com/algorand/py-algorand-sdk/pull/479

algoanne avatar May 10 '23 14:05 algoanne