janezpodhostnik / flow-py-sdk

Unofficial flow blockchain python sdk
MIT License
35 stars 26 forks source link

Transaction auto fetch reference block ID #14

Closed janezpodhostnik closed 1 year ago

janezpodhostnik commented 3 years ago

When creating a Tx object a reference block ID must be specified.

Introduce an optional way for the Tx object to fetch the reference block ID behind the scenes.

Cuttlas90 commented 2 years ago

what do you think about using client.get_latest_block(is_sealed=False) in background? if user don't pass a specific block him/herself, reference_block_id field can fill with client.get_latest_block(is_sealed=False) automatically.

janezpodhostnik commented 2 years ago

Yes! This is exactly what I had in mind here! Sorry for the poor description.