Get Token List

POST /brc20swap/search_ticks

POST/brc20swap/search_ticks

Used to get the list of available tokens for swapping, adding liquidity, etc.

export interface SearchTotalTicksBody {
  keyword: string; // Used for searching tokens by keyword
  page: number;
  page_size: number;
  tick1?: string;
  coin_type: string; // brc20 | arc20 | runes
  usetype: string;  //  liquid | swap | gettick2
}

Swapping

Used for swapping tokens.

Get the complete list of tokens available for swapping, i.e., all tokens that have liquidity pools.

  • usetype: Use swap.

Note: Only tokens with injected liquidity pools can be swapped.

Example

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

Swappable Tokens

Used to get the list of all tokens swappable with a selected token (tick1).

  • tick1: The name of the selected token.

  • usetype: Use gettick2.

Example

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

Adding Liquidity

Used to get the list of all tokens available for adding liquidity.

  • usetype: Use liquid.

Example

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

Important Notes:

The query interface for RUNES, BRC20, and ARC20 is the same; only the coin_type is different.

Last updated