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

The specified initialization vector (IV) does not match the block size for this algorithm