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

Method get_height

src/lib.rs:72–78  ·  view source on GitHub ↗

Get the height of the source hypersync instance

(&'py self, py: Python<'py>)

Source from the content-addressed store, hash-verified

70
71 /// Get the height of the source hypersync instance
72 pub fn get_height<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
73 let inner = Arc::clone(&self.inner);
74 future_into_py(py, async move {
75 let height: u64 = inner.get_height().await?;
76 Ok(height)
77 })
78 }
79
80 /// Get the chain_id of the source hypersync instance
81 pub fn get_chain_id<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {

Callers 6

mainFunction · 0.95
collect_eventsFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
test_get_heightFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_get_heightFunction · 0.36