Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message: "Invalid param: not a Token account" #427

Open
amazzuca opened this issue May 10, 2024 · 0 comments
Open

message: "Invalid param: not a Token account" #427

amazzuca opened this issue May 10, 2024 · 0 comments

Comments

@amazzuca
Copy link

Hello. I'm trying to get the amount of x token on my wallet, but when I type the following :

`from solana.rpc.api import Client, Pubkey

http_client = Client("https://api.mainnet-beta.solana.com")

token_accounts = http_client.get_token_account_balance(
Pubkey.from_string("8z94RRiZg4KqtFu36spCpwt7hTtm1pRpmX9YHY5xD86m")
)
print(token_accounts)`

I get the following:

InvalidParamsMessage { message: "Invalid param: not a Token account" }

How can I get the correct Token account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant