Open fusion44 opened 1 year ago
Currently a call to get-block-count yields a JSON string like this: "{\"result\":786420,\"error\":null,\"id\":\"0\"}\n"
"{\"result\":786420,\"error\":null,\"id\":\"0\"}\n"
Refactor this to return an int with the current block height and raise HTTPExceptions on eventual errors.
Currently a call to get-block-count yields a JSON string like this:
"{\"result\":786420,\"error\":null,\"id\":\"0\"}\n"
Refactor this to return an int with the current block height and raise HTTPExceptions on eventual errors.