Zum Inhalt
HALOWERK

Kettenwerk

gas

Reads the fee history of the last 20 blocks on Ethereum, Base, Arbitrum, Optimism, Polygon or BNB Smart Chain and returns what a transaction costs right now. Priority fees come from the 10th, 50th and 90th percentile of the tips actually paid in those blocks — the percentile used is named, not hidden. On rollups the L1 data fee is quoted separately from the L2 execution fee, because it is often the larger part and an estimate that merges them is simply wrong; the L1 part is computed from the.

POST https://kette.halowerk.com/gas

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
chainstringJaChain to read fees from.
speedstringNeinWhich speed level to highlight. All three are always returned.
tx_typestringNeinTransaction profile used for the total cost estimate. Its assumed gas limit and byte size are stated in the answer.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "chain"
  ],
  "additionalProperties": false,
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism",
        "polygon",
        "bsc"
      ],
      "description": "Chain to read fees from."
    },
    "speed": {
      "type": "string",
      "enum": [
        "langsam",
        "normal",
        "schnell",
        "alle"
      ],
      "default": "alle",
      "description": "Which speed level to highlight. All three are always returned."
    },
    "tx_type": {
      "type": "string",
      "enum": [
        "native_transfer",
        "erc20_transfer",
        "erc20_approve",
        "swap",
        "nft_mint",
        "contract_deploy"
      ],
      "default": "erc20_transfer",
      "description": "Transaction profile used for the total cost estimate. Its assumed gas limit and byte size are stated in the answer."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "chain": "ethereum",
  "speed": "alle",
  "tx_type": "erc20_transfer"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →