# listLastGasPrices

**Identifier:** `zerion_listLastGasPrices`

**Provider:** [Zerion](https://kirha.com/providers/zerion.md)

Get the last available gas prices across all supported blockchain networks

## Run it with the CLI

```bash
kirha tools run zerion_listLastGasPrices \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "zerion_listLastGasPrices",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "gasType": {
      "items": {
        "enum": [
          "classic",
          "eip1559",
          "optimistic"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "zerionChainIds": {
      "description": "Filter by specific chain IDs (e.g ethereum, base, zksync-era, etc.)",
      "items": {
        "enum": [
          "arbitrum",
          "binance-smart-chain",
          "ethereum",
          "blast",
          "ape",
          "avalanche",
          "abstract",
          "opbnb",
          "astar-zkevm",
          "zksync-era",
          "berachain",
          "bob",
          "cyber",
          "degen",
          "fraxtal",
          "gravity-alpha",
          "ink",
          "lens",
          "lisk",
          "mode",
          "base",
          "mantle",
          "optimism",
          "polygon",
          "celo",
          "manta-pacific",
          "xdai",
          "fantom",
          "ronin",
          "linea",
          "metis-andromeda",
          "aurora",
          "xinfin-xdc",
          "cronos-zkevm",
          "polygon-zkevm",
          "polynomial",
          "rari",
          "redstone",
          "scroll",
          "sei",
          "soneium",
          "sonic",
          "swellchain",
          "taiko",
          "unichain",
          "wonder",
          "tomochain",
          "world",
          "zero",
          "okbchain",
          "zklink-nova",
          "zora",
          "re-al"
        ],
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "classicGasPriceFormat": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "eip1559GasPriceFormat": {
      "type": "string"
    },
    "gasPricesByChainName": {
      "additionalProperties": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "fees": {
                "items": false,
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "type": "array"
              },
              "type": {
                "const": "classic",
                "type": "string"
              }
            },
            "required": [
              "type",
              "fees"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "baseFee": {
                "type": "number"
              },
              "fast": {
                "items": false,
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                ],
                "type": "array"
              },
              "slow": {
                "items": false,
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                ],
                "type": "array"
              },
              "standard": {
                "items": false,
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                ],
                "type": "array"
              },
              "type": {
                "const": "eip1559",
                "type": "string"
              }
            },
            "required": [
              "type",
              "baseFee",
              "slow",
              "standard",
              "fast"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "dynamicOverhead": {
                "type": "number"
              },
              "fixedOverhead": {
                "type": "number"
              },
              "layer1Cost": {
                "type": "number"
              },
              "layer2Cost": {
                "type": "number"
              },
              "type": {
                "const": "optimistic",
                "type": "string"
              }
            },
            "required": [
              "type",
              "layer1Cost",
              "layer2Cost",
              "fixedOverhead",
              "dynamicOverhead"
            ],
            "type": "object"
          }
        ]
      },
      "propertyNames": {
        "type": "string"
      },
      "type": "object"
    },
    "optimisticGasPriceFormat": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "classicGasPriceFormat",
    "eip1559GasPriceFormat",
    "optimisticGasPriceFormat",
    "gasPricesByChainName"
  ],
  "type": "object"
}
```

-----

[All Zerion tools](https://kirha.com/providers/zerion.md) · [< Back to tools list](https://kirha.com/tools.md)