From 0e6fbfd708fe06eb9180477db04a73e2b258d400 Mon Sep 17 00:00:00 2001 From: Marc <35350738+marctheshark3@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:11:39 -0600 Subject: [PATCH] Update shark_api.py --- utils/shark_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/shark_api.py b/utils/shark_api.py index 09cb9bb6..df37835e 100644 --- a/utils/shark_api.py +++ b/utils/shark_api.py @@ -121,4 +121,8 @@ def get_top_miners(self, limit=20): def get_all_miners(self, limit=100, offset=0): url = f'{self.data_manager.api}/sigscore/miners?limit={limit}&offset={offset}' - return self.data_manager.get_api_data(url) \ No newline at end of file + return self.data_manager.get_api_data(url) + + def get_miner_swap_payments(self, address): + url = f'{self.data_manager.api}/miningcore/swap_payments/{address}' + return self.data_manager.get_api_data(url)