THORSwap SwapKit
Playground
  • ⚠️Updated documentation
  • 🏡Getting Started
    • ❓FAQ
    • Terms of Service
  • ⚡Powered by SwapKit
  • 💰Monetization / Earn Fees
  • 🤝Partnership
  • SwapKit SDK
    • 1️⃣1️⃣ Install SwapKit SDK
    • 2️⃣2️⃣ Set up the SDK
    • 3️⃣3️⃣ Request Route & Execute Swap
    • 📦Packages
      • @swapkit/api
      • @swapkit/core
      • @swapkit/helpers
      • @swapkit/sdk
      • @swapkit/tokens
      • @swapkit/chainflip
      • @swapkit/thorchain
    • 👛Wallets
      • @swapkit/wallet-coinbase
      • @swapkit/wallet-evm-extensions
      • @swapkit/wallet-keepkey
      • @swapkit/wallet-keplr
      • @swapkit/wallet-keystore
      • @swapkit/wallet-ledger
      • @swapkit/wallet-okx
      • @swapkit/wallet-trezor
      • @swapkit/wallet-wc
      • @swapkit/wallet-xdefi
    • 🧰Toolboxes
      • @swapkit/toolbox-cosmos
      • @swapkit/toolbox-evm
      • @swapkit/toolbox-substrate
      • @swapkit/toolbox-utxo
  • SwapKit API
    • API Reference
      • Gas API
      • Lending API
      • Liquidity API
      • Quote API
      • THORName API
      • Token API
      • Token List API
      • Tracker API
      • Aggregator API
      • Resource Worker API
      • Full API Reference
    • ⚙️SwapKit API
      • Requesting supported Chains
      • Requesting supported Providers
      • Requesting a Quote
      • Requesting a Gas Price
      • Requesting to Add Liquidity
      • Requesting to Withdraw Liquidity
      • Request a transactions status
      • Lookup a Thorname
    • Advanced - Integrating SwapKit API
  • References
    • ✨Smart Contracts
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. SwapKit API
  2. API Reference

Gas API

PreviousAPI ReferenceNextLending API

Last updated 1 year ago

Was this helpful?

GET the gas price for a given chain

get

Get the gas information for a given chain

Query parameters
chainIdstringRequired

The chainId of the network

Responses
200
Gas Price information
404
No Gas Prices for this chainId
get
GET /resource-worker/gasPrice/get HTTP/1.1
Host: dev-api.thorswap.net
Accept: */*

No content

GET full list of gas price information

get

Get an array of all gas price information

Responses
200
Array of all gas Price information
404
No Gas Prices for this chainId
get
GET /resource-worker/gasPrice/getAll HTTP/1.1
Host: dev-api.thorswap.net
Accept: */*

No content

  • GETGET the gas price for a given chain
  • GETGET full list of gas price information