diff --git a/src/solana/rpc/api.py b/src/solana/rpc/api.py index fe78a23c..c6aea847 100644 --- a/src/solana/rpc/api.py +++ b/src/solana/rpc/api.py @@ -780,6 +780,7 @@ def get_stake_activation( >>> solana_client.get_stake_activation().value.active # doctest: +SKIP 124429280 """ + warn("get_stake_activation is deprecated. Use get_account_info instead.", DeprecationWarning) body = self._get_stake_activation_body(pubkey, epoch, commitment) return self._provider.make_request(body, GetStakeActivationResp) diff --git a/src/solana/rpc/async_api.py b/src/solana/rpc/async_api.py index 95683ed2..b64a059b 100644 --- a/src/solana/rpc/async_api.py +++ b/src/solana/rpc/async_api.py @@ -791,6 +791,7 @@ async def get_stake_activation( >>> (await solana_client.get_stake_activation()).value.active # doctest: +SKIP 124429280 """ + warn("get_stake_activation is deprecated. Use get_account_info instead.", DeprecationWarning) body = self._get_stake_activation_body(pubkey, epoch, commitment) return await self._provider.make_request(body, GetStakeActivationResp)