diff --git a/src/api_clients/rest.py b/src/api_clients/rest.py index 506dd0c..c231def 100644 --- a/src/api_clients/rest.py +++ b/src/api_clients/rest.py @@ -75,7 +75,7 @@ class REST(BaseClient): return response.json() def storage_block(self, query): - response = self.rest_call("get", "storage/block", json.dumps(query)) + response = self.rest_call("post", f"storage/block", json.dumps(query)) return response.json() def mempool_add_tx(self, data): diff --git a/src/steps/storage.py b/src/steps/storage.py index 879595e..bf81580 100644 --- a/src/steps/storage.py +++ b/src/steps/storage.py @@ -1,3 +1,5 @@ +from urllib.parse import quote + import allure from tenacity import retry, stop_after_delay, wait_fixed @@ -8,7 +10,7 @@ logger = get_custom_logger(__name__) def prepare_get_storage_block_request(header_id): - query_data = {"header_id": header_id} + query_data = f"{header_id}" return query_data