How Is the Size of a Transaction Fee Determined by a User?
A user determines the transaction fee by setting a "fee rate," which is the amount of satoshis (or equivalent smallest unit) they are willing to pay per unit of transaction size (byte or vByte). The user typically uses a wallet or exchange which suggests a competitive fee rate based on current network congestion.
A higher fee rate incentivizes miners to include the transaction sooner.