swap path

기본 정보

/info/swap/path API를 통해 WEMIX.Fi에서 토큰이 스왑되는 경로를 확인할 수 있습니다.

Token swap path

GET /info/swap/path

WEMIX.Fi에서 토큰이 스왑되는 경로를 반환합니다.

Query Parameters

NameTypeDescription

from*

string

from 토큰 주소

to*

string

to 토큰 주소

{
  "type": "success",
  "message": "success",
  "data": {
    "swap_path": [
      "string"
    ]
  }
}

Request

Parameter

NameTypeDescription

from

string

from 토큰 주소

to

string

to 토큰 주소

Response

Parameter

NameTypeDescription

type

string

성공/실패 여부

message

string

성공/실패 메시지

data

-

-

swap_path

string

토큰 스왑 경로

Sample

Request

curl

curl -X 'GET' \
  'https://openapi.wemix.fi/info/swap/path?from=0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f&to=0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1' \
  -H 'accept: application/json'

# WWEMIX token address: 0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f
# WEMIX$ token address: 0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1

Request URL

https://openapi.wemix.fi/info/swap/path?from=0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f&to=0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1

Response

{
  "type": "success",
  "message": "success",
  "data": {
    "swap_path": [
      "0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f",
      "0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1"
    ]
  }
}