Get the current blockchain height.
(rpc_url: str)
| 104 | |
| 105 | |
| 106 | def get_height(rpc_url: str) -> int: |
| 107 | """Get the current blockchain height.""" |
| 108 | resp_body = post_raw_json(f"{rpc_url}/v1/query/height", "{}") |
| 109 | result = json.loads(resp_body) |
| 110 | return result.get('height', 0) |
| 111 | |
| 112 | |
| 113 | def get_account_balance(rpc_url: str, address: str) -> int: |
no test coverage detected