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

getOrCreateAssociatedTokenAccount function returning error TokenAccountNotFoundError #6603

Closed
ShivangRawat30 opened this issue Apr 21, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ShivangRawat30
Copy link

I am trying to make an associated token account for my project.

  const mintAddress = new PublicKey(
      "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
    );
    console.log(connection, wallet, mintAddress, wallet.publicKey);
    const toAta = await getOrCreateAssociatedTokenAccount(
      connection,
      wallet,
      mintAddress,
      wallet.publicKey,
    );

this code is returning a TokenAccountNotFoundError I am using USD Coin Dev token for this project and the error looks like this.

Screenshot 2024-04-21 at 1 26 13 PM Screenshot 2024-04-22 at 2 42 09 AM
@buffalojoec buffalojoec added the question Further information is requested label Apr 21, 2024
Copy link
Contributor

Hi @ShivangRawat30,

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Solana itself.

Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with Solana itself, please post your question to the Solana Stack Exchange using this link: https://solana.stackexchange.com/questions/ask


This automated message is a result of having added the ‘question’ tag.

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

No branches or pull requests

2 participants