MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / test_preset_query_blocks_and_transactions

Function test_preset_query_blocks_and_transactions

test.py:235–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234
235async def test_preset_query_blocks_and_transactions():
236 start_time = time.time()
237 client = make_client()
238 query = hypersync.preset_query_blocks_and_transactions(17_000_000, 17_000_010)
239 res = await client.get(query)
240 execution_time = (time.time() - start_time) * 1000
241 assert len(res.data.blocks) == 10
242 assert len(res.data.transactions) > 1
243 print(
244 f"preset_query_blocks_and_transactions time: {format(execution_time, '.9f')}ms"
245 )
246
247
248async def test_preset_query_blocks_and_transaction_hashes():

Callers 1

mainFunction · 0.85

Calls 2

make_clientFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected