Skip to main content

Recommended: JavaScript SDK for React Native

While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
Before sending a transaction, you can use the public client to estimate the gas fees. Some chains also support custom gas estimation methods. Here are examples of how to get a gas estimate using viem:

Estimate Gas Function

Last modified on July 24, 2026