# Multi-chain Gas Prices

{% hint style="success" %}
Before we continue, please ensure that you have had a look at our [Supported Ethereum Chains](broken://pages/-MeAyzR2e2VKsOneDqAi), followed the steps in [Install Etherspot SDK](/getting-started/install-sdk.md) and how to [Bootstrap Etherspot SDK](/getting-started/bootstrap-etherspot-sdk.md). We're assuming that you have completed these steps before going forward.
{% endhint %}

## Getting started

Fetching the gas price of a particular chain or network is performed against the Etherspot SDK instance that your application is using, and the chain or network that the instance of the Etherspot SDK was instantiated with.

## Fetching the gas price

To fetch the gas price on a particular chain or network, the following method:`getGatewayGasInfo`, should be called against your Etherspot SDK instance. For example, to fetch the gas price on `mainnet`, the `getGatewayGasInfo` method would need to be called on an Etherspot SDK instance that was instantiated with the `networkName` of `mainnet` as shown below:

```typescript
import { Sdk, NetworkNames, randomPrivateKey } from 'etherspot';

const privateKey = randomPrivateKey();
let etherspotSdkMainnetInstance: Sdk

/**
* If you want to get the gas price of another chain
* or network, simply instantiate the SDK with your
* desired `networkName`.
*/
etherspotSdkMainnetInstance = new Sdk({
  privateKey,
}, {
  networkName: 'mainnet' as NetworkNames,
});

// The following method returns the gas price
etherspotSdkMainnetInstance
  .getGatewayGasInfo();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v1.etherspot.io/use-cases/multi-chain-gas-prices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
