So in my code I am doing the following in my backend and wondering which I should use?
const sig = await web3.sendAndConfirmTransaction(connection, createMetadataTx, [mint_authority], {
skipPreflight: false
})
const sig = await connection.sendTransaction(
createMetadataTx,
[mint_authority],
{
skipPreflight: false,
}
);
I am guessing that the sendAndConfirmTransaction takes a little longer but confirms that the trx has been accepted for processsing, but not necessarily finalized?
And what bearing does my connection 'commitment' have on this?:
const connection = new Connection(tokenType.cluster, "processed");