Royco SDK

useBaseTokens

Hook for fetching list of all the supported tokens that can be used in royco pools

Declaration

use-base-tokens

Import

import { useBaseTokens } from "royco/hooks";

Usage

Component.tsx
import { useBaseTokens } from "royco/hooks";
 
const Component = () => {
  const { data: tokens, isLoading, isError, isRefetching } = useBaseTokens();
};

Return Type

  • data : BaseToken[] | null | undefined
  • isLoading : boolean
  • isError : boolean
  • isRefetching : boolean

Type Reference

Last updated on

On this page

Edit on Github