代币列表查询

获取代币列表

搜索所有币种

post
Header parameters
AuthorizationstringOptional

token

User-IdstringOptional
Body
pageintegerRequired
page_sizeintegerRequired
keywordstringOptional
addressstringOptional
usetypestringRequired

deposit/liquid/swap/gettick2/withdraw

tick1stringOptional
coin_typestringRequired
Responses
200

成功

application/json
post
/brc20swap/search_ticks
POST /brc20swap/search_ticks HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "page": 1,
  "page_size": 30,
  "usetype": "liquid",
  "coin_type": "runes"
}
{
  "code": 0,
  "msg": "",
  "data": {
    "total": 1,
    "items": [
      {
        "tick": "SHE•SHE•SHE•SHE•SHE",
        "coin_type": "runes",
        "icon": "S",
        "holder_count": 2,
        "mint_percent": "0",
        "balance": "",
        "divisibility": 0,
        "non_removable": false,
        "tick_id": ""
      }
    ],
    "has_next": false
  },
  "req_id": "1887716234576175104"
}

主要用于获取兑换、注入等可用代币列表

兑换

可用于兑换代币

获取【可用于兑换】的全部代币列表,即用于查出所有有流动池的币

  • usetype: 使用 swap。

注:只有有注入流动池的代币,才可以兑换

示例

{
    "page": 1,
    "page_size": 30,
    "keyword": "",
    "usetype": "swap",
    "coin_type": "runes"
}

可兑换代币

通过用户选择用于兑换的代币(tick1),即查询当前已选代币可兑换的所有代币列表

  • tick1: 已选的代币名

  • usetype: 使用 gettick2

示例

{
    "page": 1,
    "page_size": 30,
    "keyword": "",
    "usetype": "gettick2",
    "coin_type": "runes",
    "tick1": "BTC"
}

注入

可注入代币

获取可用于注入的所有代币列表

  • usetype: 使用 liquid。

示例

{
    "page": 1,
    "page_size": 30,
    "keyword": "",
    "address": "",
    "usetype": "liquid",
    "coin_type": "runes"
}

1、RUNES, BRC20, ARC20 查询接口相同,仅coin_type 不同

Last updated