Estimates the gas required to execute a transaction. Estimates gas only; does not broadcast the transaction.