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
I keep on getting this error while creating associated token, wbout the wrong program ID. The sccoaited token address got from the getter function is also not in chain- when I did solana_client.get_account_info of the value from getters of associated tokne, the value is none. showing that it doesnt exits..
When I try to create it and send transaction, fails with incorrect program id.
I am using usdc as example. and wish to create asscoaited key of sender to that token. this error shows up:
from solana.rpc.async_api import AsyncClient
from spl.token.constants import TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID
from solders.pubkey import Pubkey
I keep on getting this error while creating associated token, wbout the wrong program ID. The sccoaited token address got from the getter function is also not in chain- when I did solana_client.get_account_info of the value from getters of associated tokne, the value is none. showing that it doesnt exits..
When I try to create it and send transaction, fails with incorrect program id.
I am using usdc as example. and wish to create asscoaited key of sender to that token. this error shows up:
from solana.rpc.async_api import AsyncClient
from spl.token.constants import TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID
from solders.pubkey import Pubkey
solana_client = AsyncClient("https://api.devnet.solana.com")
res = await solana_client.is_connected()
print("isConnected?", res) # True
Output : Transaction failed with error: SendTransactionPreflightFailureMessage { message: "Transaction simulation failed: Error processing Instruction 0: incorrect program id for instruction", data: RpcSimulateTransactionResult(RpcSimulateTransactionResult { err: Some(InstructionError(0, IncorrectProgramId)), logs: Some(["Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]", "Program log: Create", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]", "Program log: Instruction: GetAccountDataSize", "Program log: Error: IncorrectProgramId", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 884 of 192908 compute units", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: incorrect program id for instruction", "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 7976 of 200000 compute units", "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: incorrect program id for instruction"]), accounts: None, units_consumed: Some(7976), return_data: None, inner_instructions: None }) }
The text was updated successfully, but these errors were encountered: