Gas
Use estimates before prepare
Show fee estimates to users before you prepare a transaction for them to sign.
Overview
Show users an estimated fee before calling transactions/prepare. Estimates are advisory—final gas depends on network conditions at broadcast time.