Butter Network
Github
  • 🌈About Butter Network
  • 🔥ZK Light Client
    • Understanding Light Client
    • Refactored ZK Light Client
  • 🔥Omnichain Development
    • Omnichain Isomorphism
    • More Possibilities
  • 🌈Butter Omnichain Messaging Integration
    • Introduction
    • Integration Guide
      • Message
      • Message with Ton
      • CALLDATA
      • Message And Relay
    • Contract Interface
    • Fee
    • Deployed Contracts
    • 👨‍💻API for Omnichain Message
      • GET Message History by Source Address
      • GET Message Info by Id
      • GET Message Info by Source Hash
  • 🔥Butter Bridge Integration
    • Integration Guide
    • Contract Interface
    • Fee
    • Deployed Contracts
  • 💰Butter Swap Integration
    • Introduction
    • 🟢Integration Guide
      • Contract Interface
      • Fee
    • Deployed Contracts
      • v2.1
    • 👩‍💻API for Routing
      • Integration Guide
      • GET /route
      • GET /swap
      • GET /routeAndSwap
      • GET /supportedChainList
      • GET /findToken
      • 🔴Error Code List
    • 👨‍💻API for Swap Data
      • GET Swap History by Source Hash
      • GET Swap History by Source Address
      • GET Swap Info by Order ID
      • GET Supported Chain Detail List
      • GET Supported Token Detail List
  • 💰Butter Swap User Guide
    • 🫂User Guide
  • Butter Swap SDK
    • Install
    • Config SDK
    • Request Routes
    • Execute Route
    • Others
  • Butter Swap Widget
    • Usage
  • 📢Resources
    • 🏠Website
    • 🫂Telegram
    • 📄X
Powered by GitBook
On this page
  1. Butter Swap Integration
  2. API for Swap Data

GET Supported Chain Detail List

GET /api/queryChainList

Complete Query Example

https://bs-tokens-api.chainservice.io/api/queryChainList

Request Params

Name

Location

Type

Required

Description

chainId

query

string

no

Chain id, if not set, return all.

chainName

query

string

no

Chain name, if not set, return all.

Responses

HTTP Status Code

Meaning

Description

Data schema

200

Success

Inline

Responses Data

Name

Type

Description

chains

Array

Result support chain list.

Responses Params

Name

Type

Description

chainId

String

Chain id.

chainType

String

Chain type.

coin

String

Mainnet coin.

key

String

Query token key

logoUri

String

Logo Uri.

metamask

String

Metamask info.

- chainName

String

Chain name.

- blockExplorerUrls

String

Explorer Url.

- chainId

String

Chain Id.

- nativeCurrency

String

Mainnet coin info.

- rpcUrls

String

Rpc Url.

name

String

Chain name.

nativeToken

String

Mainnet coin info.

- symbol

String

Token symbol.

- address

String

Token address.

- coinKey

String

Token key.

- priceUSD

String

Token price.

- chainId

String

Chain id.

- decimals

String

Token decimal.

- name

String

Token name.

- logoURI

String

Token icon url.

isBlock

String

Whether it is a blacklist, 0, no, 1, yes.

Response Examples

200 Response

{
  "code": 200,
  "message": "success",
  "data": {
    "chains": [
      {
        "id": 1,
        "chainId": "1",
        "chainType": "EVM",
        "coin": "ETH",
        "key": "ethereum",
        "logoUri": "https://s3.amazonaws.com/map-static-file/mapSwap/ethereum.svg",
        "mainnet": 1,
        "metamask": "{\"chainName\":\"Ethereum Mainnet\",\"blockExplorerUrls\":[\"https://etherscan.io/\"],\"chainId\":\"0x1\",\"nativeCurrency\":{\"symbol\":\"ETH\",\"decimals\":18,\"name\":\"ETH\"},\"rpcUrls\":[\"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161\"]}",
        "multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
        "name": "Ethereum",
        "nativeToken": "{\"symbol\":\"ETH\",\"address\":\"0x0000000000000000000000000000000000000000\",\"coinKey\":\"ETH\",\"priceUSD\":\"1885.39\",\"chainId\":1,\"decimals\":18,\"name\":\"ETH\",\"logoURI\":\"https://static.debank.com/image/token/logo_url/eth/935ae4e4d1d12d59a99717a24f2540b5.png\"}",
        "tokenlistUrl": "https://gateway.ipfs.io/ipns/tokens.uniswap.org",
        "isBlock": 0
      }
      ......
    ]
  }
}

PreviousGET Swap Info by Order IDNextGET Supported Token Detail List

Last updated 1 year ago

💰
👨‍💻
OK