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

Transaction auto fetch reference block ID

Open janezpodhostnik opened this issue 3 years ago • 2 comments

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.

janezpodhostnik avatar May 12 '21 10:05 janezpodhostnik

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.

Cuttlas90 avatar Nov 12 '21 06:11 Cuttlas90

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

janezpodhostnik avatar Nov 12 '21 13:11 janezpodhostnik