diff --git a/sidra_chain_integration/sidra_chain_service.py b/sidra_chain_integration/sidra_chain_service.py new file mode 100644 index 000000000..548983e8e --- /dev/null +++ b/sidra_chain_integration/sidra_chain_service.py @@ -0,0 +1,13 @@ +# sidra_chain_service.py +from sidra_chain_api import SidraChainAPI + +class SidraChainService: + def __init__(self, api_key, api_secret): + self.sidra_chain_api = SidraChainAPI(api_key, api_secret) + + def get_chain_data(self): + access_token = self.sidra_chain_api.authenticate() + if access_token: + return self.sidra_chain_api.get_chain_data(access_token) + else: + return None