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 /findToken

GET find the token information by the given address

Request Parameters

Name
Location
Type
Required
Description

address

query

string

yes

token address

Responses Structure

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 token information with the requested address on supported blockchains.

Request Example

GET /findToken?address=0x13CB04d4a5Dfb6398Fc5AB005a6c84337256eE23

Response Examples

200 Response

{
  "errno": 0,
  "message": "string",
  "data": [
    {
      "id": 22776,
      "chainId": 22776,
      "address": "0x13CB04d4a5Dfb6398Fc5AB005a6c84337256eE23",
      "blockchainNetwork": "22776",
      "coingeckoId": "",
      "decimals": 18,
      "image": "https://cdn.befiwalletdao.com/image/icon_local_map_checked_3gfyyv.png",
      "name": "Wrapped MAP",
      "rank": 0,
      "symbol": "WMAPO",
      "tokenSecurity": null,
      "usdprice": 0,
      "usedIniframe": 0
    }
  ]
}
PreviousGET /supportedChainListNextError Code List

Last updated 3 months ago

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

Please find all here.

💰
👩‍💻
ButterSwap API Reference
error code list