You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from solathon import Client, PublicKey
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/init.py", line 3, in
from .client import Client
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/client.py", line 5, in
from .utils import RPCRequestError, validate_commitment
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/utils.py", line 6, in
from solathon.core.types import Commitment, RPCErrorType, RPCResponse
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/init.py", line 1, in
from .account_info import AccountInfo, AccountInfoType, ProgramAccount, ProgramAccountType
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 3, in
class AccountInfoType(TypedDict):
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 12, in AccountInfoType
data: Union[str, dict[str, Any]]
TypeError: 'type' object is not subscriptable
What's happened????
The text was updated successfully, but these errors were encountered:
Run:
from solathon import Client, PublicKey
client = Client("https://api.devnet.solana.com")
public_key = PublicKey("B3BhJ1nvPvEhx3hq3nfK8hx4WYcKZdbhavSobZEA44ai")
balance = client.get_balance(public_key)
print(balance)
from solathon import Client, PublicKey
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/init.py", line 3, in
from .client import Client
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/client.py", line 5, in
from .utils import RPCRequestError, validate_commitment
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/utils.py", line 6, in
from solathon.core.types import Commitment, RPCErrorType, RPCResponse
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/init.py", line 1, in
from .account_info import AccountInfo, AccountInfoType, ProgramAccount, ProgramAccountType
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 3, in
class AccountInfoType(TypedDict):
File "/Users/mac/opt/miniconda3/envs/py/lib/python3.8/site-packages/solathon/core/types/account_info.py", line 12, in AccountInfoType
data: Union[str, dict[str, Any]]
TypeError: 'type' object is not subscriptable
What's happened????
The text was updated successfully, but these errors were encountered: