We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: