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
  • Request Parameters
  • Responses Structure
  • Request Example
  • Response Examples
  1. Butter Swap Integration
  2. API for Routing

GET /supportedChainList

GET get chain id list that Butter Router supports

Request Parameters

None

Responses Structure

The response contains the following fields:

Field
Type
Description

errno

number

message

string

Response message. If the request was successful it is success, otherwise it gives corresponding error message.

data

array

An array of the supported blockchain Ids.

Request Example

GET /supportedChainList

Response Examples

200 Response

{
  "errno": 0,
  "message": "string",
  "data": [
    1,
    137,
    56,
    22776,
    728126428,
    8217,
    4200,
    2649,
    8453,
    81457,
    324,
    5000,
    59144,
    42161,
    10,
    1360108768460801,
    1360104473493505,
    1360095883558913
  ]
}

Butter Chain ID explanation

Chain Id
Blockchain Name

1

Ethereum

137

Polygon Mainnet

56

BNB Smart Chain Mainnet

22776

MAP Protocol

728126428

Tron

8217

Kaia

4200

Merlin Mainnet

2649

AILayer

8453

Base

81457

Blast

324

zkSync Mainnet

5000

Mantle

59144

Linea

42161

Arbitrum One

10

OP Mainnet

1360108768460801

Solana Mainnet

1360104473493505

TON

1360095883558913

BTC

PreviousGET /routeAndSwapNextGET /findToken

Last updated 1 month ago

Error code. 0 means success, other values indicate errors, see .

Please find all here.

💰
👩‍💻
ButterSwap API Reference
error code list