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