solana - Getting TokenAccountNotFoundError when calling getOrCreateAssociatedTokenAccount

 

Having configuring the following settings helped me to resolve this. 

    const connection = new web3.Connection(web3.clusterApiUrl("devnet"), "confirmed");

or you can use 

const connection = new web3.Connection(web3.clusterApiUrl("devnet"), {
        commitment: "confirmed",
    });

Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error