When writing to a smart contract, we can specify the priority and fee per gas.
await contract.connect(owner).foo({
maxFeePerGas: "<YOUR FEE>"
maxPriorityFeePerGas: "<YOUR PRIORITY FEE>"
});
If we don't specify it, how do these nodes determine those values, and is it possible to know those before making the transaction?
Etherjs has an API called "getFeeData", is that what's being used for the default values?