Options
All
  • Public
  • Public/Protected
  • All
Menu

Token list

Hierarchy

  • TokenList

Index

Constructors

Methods

  • Filter token by mint of token list.

    Parameters

    • mint: string

      Token's mint address

    Returns (LpTokenInfo | SplTokenInfo)[]

  • Filter unique token by mint of token list, must and can only have one result.

    Type parameters

    • T: "all" | "spl" | "lp"

    Parameters

    • mint: string
    • tokenType: T | "all" | "spl" | "lp" = "all"

    Returns T extends "all" ? LpTokenInfo | SplTokenInfo : T extends "spl" ? SplTokenInfo : LpTokenInfo